ashishsurya
ashishsurya14mo ago

Decision on auth

I am using create-t3-app for my app , with next-auth (twitter, discord, google) . Now i am using same api for my react-native client. Now how can i authenticate users from my react-native app???
1 Reply
Dave
Dave14mo ago
As far as I know, next-auth does not work with react native. There is a fork of the t3 turbo repo (nextjs + react native) that uses clerk for auth: https://github.com/clerkinc/t3-turbo-and-clerk You can also checkout this fork that uses supabase with nextjs and react native: https://github.com/supabase-community/create-t3-turbo So I think you wont be able to use next-auth on react-native but there are providers like supabase and clerk that allow you to use social logins (twitter,google, discord) on react-native.
GitHub
GitHub - clerkinc/t3-turbo-and-clerk: A t3 Turbo starter with Clerk...
A t3 Turbo starter with Clerk as the auth provider. - GitHub - clerkinc/t3-turbo-and-clerk: A t3 Turbo starter with Clerk as the auth provider.
GitHub
GitHub - supabase-community/create-t3-turbo: Clean and simple start...
Clean and simple starter repo using the T3 Stack along with Expo React Native and Supabase - GitHub - supabase-community/create-t3-turbo: Clean and simple starter repo using the T3 Stack along with...