aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-03-24 12:50:05 -0500
committerAlex Gleason <alex@alexgleason.me>2021-03-24 12:50:05 -0500
commitb6a69b5efda5f75ad716252c69ae658a4e885b0a (patch)
tree7956ee8821d98ec4e3276fdb930f359a89a06951 /lib
parentcaadde3b04cf4c6509cc0841a338503e646221a0 (diff)
downloadpleroma-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.ex1
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,