summaryrefslogtreecommitdiff
path: root/lib/pleroma/web/o_auth/o_auth_view.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/web/o_auth/o_auth_view.ex')
-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,