How can I get Firebase Auth to work with Server Components?
Unanswered
Fieldfare posted this in #help-forum
FieldfareOP
Firebase Auth uses localStorage, not cookies, so I am unsure.
4 Replies
Asiatic Lion
You can use firebase-admin to set cookies server-side. https://firebase.google.com/docs/auth/admin/manage-cookies
@Fieldfare Firebase Auth uses localStorage, not cookies, so I am unsure.
Border Terrier
you should migrate to Supabase... their documentation is a lot easier to understand
as you can see here the server component is using a route.ts to send back the cliente a cookie for auth