Formatting fixes.
This commit is contained in:
parent
ce7618f6f6
commit
9e6ae44729
6 changed files with 24 additions and 11 deletions
|
|
@ -63,7 +63,8 @@ defmodule Pleroma.Web.OAuth.OAuthController do
|
|||
client_secret: params["client_secret"]
|
||||
),
|
||||
fixed_token = fix_padding(params["code"]),
|
||||
%Authorization{} = auth <- Repo.get_by(Authorization, token: fixed_token, app_id: app.id),
|
||||
%Authorization{} = auth <-
|
||||
Repo.get_by(Authorization, token: fixed_token, app_id: app.id),
|
||||
{:ok, token} <- Token.exchange_token(app, auth) do
|
||||
response = %{
|
||||
token_type: "Bearer",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue