Skip to content

Commit

Permalink
Add group_names to JWT
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Aug 5, 2024
1 parent 4a9abf5 commit 41ac69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ async def redirect_callback(code: str, state: Optional[str] = None):
"sub": user.sub,
"role": "web_user", # For PostgREST
"groups": [group.id for group in user.groups],

"group_names": [group.name for group in user.groups]
}
)

Expand Down

0 comments on commit 41ac69c

Please sign in to comment.