Augment the AuthUser object? #481
Unanswered
jamie-legg
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Could you use custom Firebase claims for this, then rely on the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to augment the
AuthUser
object (perhaps by modifyingreq
beforesetAuthCookies(req, res)
in order to store additional authorisation data? For example, the role someone has in an admin dashboard.Forgive me if this is explored elsewhere, I did look.
I want to do something like, verify the token server side, use
admin
to get the role of the operator, and then store that in the cookie for easy retrieval throughout the application components.Beta Was this translation helpful? Give feedback.
All reactions