How do I detect Magic Link for React Native (Expo)?
Hi all -
I'm stuck and need some help please!
I'm setting up auth via email magic link. However, I don't know how to set up my codebase to detect that the link has been clicked.
Ideally, when the link has been clicked, I'd like to set the session.
This is what I have but it doesn't seem to register that the link has been clicked. What am I missing?
useEffect(() => {
supabase.auth.getSession().then(({ data: { session } }) => {
setSession(session)
})
supabase.auth.onAuthStateChange((_event, session) => {
setSession(session)
})
I'm stuck and need some help please!
I'm setting up auth via email magic link. However, I don't know how to set up my codebase to detect that the link has been clicked.
Ideally, when the link has been clicked, I'd like to set the session.
This is what I have but it doesn't seem to register that the link has been clicked. What am I missing?
useEffect(() => {
supabase.auth.getSession().then(({ data: { session } }) => {
setSession(session)
})
supabase.auth.onAuthStateChange((_event, session) => {
setSession(session)
})