Web.OAuth.OAuthController: Fix scopes Enum.join for OAuth response

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-03-02 04:04:16 +01:00
parent 1c265b3b19
commit b6a001a34c
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ def token_exchange(conn, %{"grant_type" => "authorization_code"} = params) do
refresh_token: token.refresh_token,
created_at: DateTime.to_unix(inserted_at),
expires_in: 60 * 10,
scope: Enum.join(token.scopes)
scope: Enum.join(token.scopes, " ")
}
json(conn, response)