OAuth2: Return success=true in POST request

This commit is contained in:
rubenwardy 2023-12-15 23:03:58 +00:00
parent e9911e85a2
commit 8e312c4bcc
2 changed files with 2 additions and 0 deletions

@ -142,6 +142,7 @@ def oauth_grant():
db.session.commit() db.session.commit()
return jsonify({ return jsonify({
"success": True,
"access_token": token.access_token, "access_token": token.access_token,
"token_type": "Bearer", "token_type": "Bearer",
}) })

@ -69,6 +69,7 @@ If successful, you'll receive:
```json ```json
{ {
"success": true,
"access_token": "access_token", "access_token": "access_token",
"token_type": "Bearer" "token_type": "Bearer"
} }