[server] fix scope response type + add extra claims to access token

This commit is contained in:
Lakhan Samani
2023-02-08 09:39:08 +05:30
parent 4018da6697
commit 70242debe1
4 changed files with 39 additions and 14 deletions

View File

@@ -259,7 +259,7 @@ func TokenHandler() gin.HandlerFunc {
res := map[string]interface{}{
"access_token": authToken.AccessToken.Token,
"id_token": authToken.IDToken.Token,
"scope": scope,
"scope": strings.Join(scope, " "),
"roles": roles,
"expires_in": expiresIn,
}