Can I use firestore browser SDK using firebase auth session cookie? #7094
Unanswered
nkpgardose
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using sessions/cookies to authenticate my users.
and I'm using
verifySessionCookie()
on the server for some API authentication, perform some tasks, etc.However, I do want to have the option to run some firestore in the client-side like so
In security rules:
But as far as the
getAuth
and the security rules in place.currentUser
here is already null.Would there be a good approach here to use firestore in the client side? and use session cookie to hydrate
currentUser
values andrequest.auth.uid
in security rules?I'd like to have this kind of option as NextJS can be SSR & interactive in client at the same time. I'd appreciate the help.
Beta Was this translation helpful? Give feedback.
All reactions