Next.js Discord

Discord Forum

To properly manage a session, where should I store the tokens?

Unanswered
Blue-headed Vireo posted this in #help-forum
Open in Discord
Blue-headed VireoOP
After authenticating a user (via api in res to form) on firebase, and after getting the token, where should I go to store it?

2 Replies

Asian black bear
Popular options are in cookies or local/session storage
It depends a lot how much you want it during api/rsc/ssr calls