Return token's primary key with POST /oauth/token
This commit is contained in:
parent
caadde3b04
commit
b6a69b5efd
3 changed files with 27 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue