Skip to content

Using with Firebase Auth #279

Answered by cakirilker
cakirilker asked this question in Q&A
Discussion options

You must be logged in to vote

Alright, so after reading article by @sergiodxa and another one I found, I was able to have it working properly.
https://sergiodxa.com/articles/working-with-refresh-tokens-in-remix
https://invertase.io/blog/remix-firebase-auth (In this article firebase-admin package is used but I have it on my go service, so everything done here with firebase-admin package is done externally in my case)

Basically what I am doing is once user sign in/sign up I create a session cookie in auth.server.ts authenticator function and return it. The created session cookie has 5 days of validity and created with firebase createSessionCookie function. Then I store it with session.server.ts with a longer validity (3…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cakirilker
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