How to refresh session data. #13181
Unanswered
tsartrooper
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
so i am using google oauth for authentication, so after signing, user should choose a role. Following page provides with that interface, and after the user chooses the role, the role is updated on the database, but the client side session updation happens only after the page is refreshed.
choose-role page handling function:
notice here i have to refresh the page to update the session.
server action :
these are callbacks:
the session updation should happen imediately after the role is persisted on the database, and not through page refresh. Is that the expected behaviour?
Beta Was this translation helpful? Give feedback.
All reactions