Skip to content
Discussion options

You must be logged in to vote

My approach in this case usually has been to keep only the userId in the session object and nothing else, since that will not change.

Then, I have a /me endpoint which the requires authentication, and that way, any information related to the user can be queried after the user has logged in. I usually store this in a context object which can be accessed anywhere down the component tree.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@slammer1870
Comment options

@mahieyin-rahmun
Comment options

Answer selected by slammer1870
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants