aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2021-04-29 19:13:50 +0000
committerfeld <feld@feld.me>2021-04-29 19:13:50 +0000
commit377f84f3678f9c2541fbd4a200cd93c5ab0dea24 (patch)
treeed7291819e56e40dd8bb6f71089a1c12a9a4e6f9 /lib
parent2fe3bd8178a602bde979a24e5037bb08d48e41b6 (diff)
parent6bc8ab225d87698416a2dc82c8a894e4ffe85615 (diff)
downloadpleroma-377f84f3678f9c2541fbd4a200cd93c5ab0dea24.tar.gz
Merge branch 'oauth-token-id' into 'develop'
Return token's primary key with POST /oauth/token See merge request pleroma/pleroma!3380
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,