Update user data in authenticator.isAuthenticated(request)
#136
Answered
by
sergiodxa
kavinvalli
asked this question in
Q&A
-
I'm currently using this to get the user const user = await authenticator.isAuthenticated(request); Now, if I'm making a change to the user, it's not updated in the session user data. Is there some way to do that? |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Feb 27, 2022
Replies: 1 comment 3 replies
-
If you update the user data you need to get the session object, change the |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
sergiodxa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you update the user data you need to get the session object, change the
authenticator.sessionKey
with the new value, commit the session and send the new cookie to the browser, on the next request isAuthenticated will give you the need value from the session.