Replies: 2 comments 1 reply
-
I'm no Remix-expert (yet :-)). The recommended way depends on what you want to achieve. Firebase will Whenever you need to call an API, submit a form or similar tasks on a server, you should pass the JWT token to the action. Then use I've spent some time with the firebase docs. Handling |
Beta Was this translation helpful? Give feedback.
-
I don't get it. That event is supposed to trigger on the client's browser, I don't understand how it can fire a change event on the server-side. |
Beta Was this translation helpful? Give feedback.
-
I came across a strange situation today. Let me explain it.
If we use Firebase/ Supabase as an authentication module for our project, we normally attach
Auth Event listener
in the browser (inside useEffect ) likefirebase.auth.onAuthStateChange()
orsupabase.auth.onAuthStateChange()
and if we trigger events like
signup
,signin
,signout
insideloader
in remix which runs in serversupabase.auth.signIn()
orfirebase.auth.signIn()
The above listener will not trigger this
signIn
event since the listener is in the browser butsignin
event is happening inside the loader(server)What's the recommended way of handling this?
Beta Was this translation helpful? Give feedback.
All reactions