diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-03-24 12:50:05 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-03-24 12:50:05 -0500 |
commit | b6a69b5efda5f75ad716252c69ae658a4e885b0a (patch) | |
tree | 7956ee8821d98ec4e3276fdb930f359a89a06951 /lib | |
parent | caadde3b04cf4c6509cc0841a338503e646221a0 (diff) | |
download | pleroma-b6a69b5efda5f75ad716252c69ae658a4e885b0a.tar.gz |
Return token's primary key with POST /oauth/token
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/o_auth/o_auth_view.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/o_auth/o_auth_view.ex b/lib/pleroma/web/o_auth/o_auth_view.ex index 281bbcc3c..1419c96a2 100644 --- a/lib/pleroma/web/o_auth/o_auth_view.ex +++ b/lib/pleroma/web/o_auth/o_auth_view.ex @@ -10,6 +10,7 @@ defmodule Pleroma.Web.OAuth.OAuthView do def render("token.json", %{token: token} = opts) do response = %{ + id: token.id, token_type: "Bearer", access_token: token.token, refresh_token: token.refresh_token, |