Skip to content

Would it be possible to have a "Remember me" feature ? #54

Answered by kmjennison
tlays asked this question in Q&A
Discussion options

You must be logged in to vote

@tlays In this package, the Firebase JS SDK is the source of truth for auth, so the cookies will set/unset depending on Firebase's auth status.

Indefinite authentication: By default, Firebase should persist authentication locally that lives beyond the session (see Firebase persistence docs). If you're signed out after closing the session, you probably have to look at your Firebase settings or ensure your browser isn't clearing local storage on close. next-firebase-auth also defaults to keeping auth cookies for 1 week, so it will also keep the user authenticated by default.

Session authentication: If you set Firebase JS SDK to session storage, you should also make sure next-firebase-auth c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tlays
Comment options

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