You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe it's already possible with current setup and I'm just reading README wrong 🤷♂️
Describe the problem you'd like to have solved
Cognito JWT tokens have property:
'cognito:groups': [ ... list of groups ...],
I would like to write extra validation function (instead of another middle-ware) to specify if user is member of group then ...
Describe the ideal solution
jwt({
validation: (decodedToken) => {
... so some validation and throw if needed ...
})
## Alternatives and current work-arounds
I would need to attach new middleware to validate decoded `.user`
The text was updated successfully, but these errors were encountered:
Maybe it's already possible with current setup and I'm just reading README wrong 🤷♂️
Describe the problem you'd like to have solved
Cognito JWT tokens have property:
I would like to write extra validation function (instead of another middle-ware) to specify
if user is member of group then ...
Describe the ideal solution
The text was updated successfully, but these errors were encountered: