Return token's primary key with POST /oauth/token

This commit is contained in:
Alex Gleason 2021-03-24 12:50:05 -05:00
commit b6a69b5efd
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
3 changed files with 27 additions and 4 deletions

View file

@ -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,