© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
11 replies
sammysocal

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)
})
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Sign in with Magic Link React Native
SupabaseSSupabase / help-and-questions
4y ago
Does magic link work with react-native?
SupabaseSSupabase / help-and-questions
4y ago
Authentication/React Native Expo
SupabaseSSupabase / help-and-questions
14mo ago
React Native + Expo + Supabase Auth
SupabaseSSupabase / help-and-questions
3y ago