Is there any examples for how to do authentication with Expo (Expo router v2)
That handles login/register/email confirm callback
10 Replies
Hi :vmathi: Have a look here: https://www.youtube.com/watch?v=11nqoyqI7NU https://dev.to/aaronksaunders/expo-router-supabase-authentication-flow-and-tab-navigation-54co
Aaron Saunders
YouTube
Expo Router Supabase Authentication Flow Sample Code 👩💻
Expo Router Supabase Authentication Flow Sample Code
#expo #supabase #reactnative #react
APPWRITE Video - https://youtu.be/Ud_GWxu1_Xg
- APPWRITE Blog Post - https://dev.to/aaronksaunders/expo-router-v2-authentication-flow-with-appwrite-jee
- Source Code - https://github.com/aaronksaunders/expo-router-v2-authflow-appwrite/tree/feature/supabas...
DEV Community
Expo Router Supabase Authentication Flow and Tab Navigation
Overview This blog post is to complement the Expo Router Tab and Supabase Authentication...
You can also take example of this post: https://dev.to/aaronksaunders/expo-router-v2-authentication-flow-with-appwrite-jee
DEV Community
Expo Router V2 - Authentication Flow with Appwrite
This blog post is a complimentary resource to support the video on Expo Router v2 In the video, I...
hey @Olyno thanks for the info, i managed to get a bit working using the flowType pkce
But supabase-js throws an warning about WebCrypto, (the app does work tho)
Is there a way to disable that?
You would need a polyfill for that
Do you know any?
expo-standard-crypto didn't work got more errors about functions not being found (js errors)
Honestly, i don't know any polyfill for that :/ I come back to you if i find any
Thanks
Authentication is a mess with react native
The default flow puts the tokens in the hash of the url and you can't access those properly in react native
you can if you're using react navigation without expo router
Configuring links | React Navigation
In this guide, we will configure React Navigation to handle external links. This is necessary if you want to:
you can then call
auth.setSession
directly with the acess and refresh tokens
you can also grab the unparsed url with Linking.getInitialURL
and extract the tokens from there, this solution works with expo router too