Next Auth with Expo

Hey! I already have a NextJS app where I use Next auth as my authentication provider. I would like to build a mobile app with Expo that would use my NextJS API routes as well as the Rest API exposed by Next Auth. On the next auth website, they do not provide guidance / support Next Auth with React Native. However, I think there could be a workaround somehow. Has anybody done something similar to this in the past? Or if it's not possible, what would be your recommendation to go with if I want to use the same API for both the web and my mobile app. Thanks in advance!
4 Replies
Matvey
Matvey10mo ago
check out create-t3-turbo - https://github.com/t3-oss/create-t3-turbo
GitHub
GitHub - t3-oss/create-t3-turbo: Clean and simple starter repo usin...
Clean and simple starter repo using the T3 Stack along with Expo React Native - t3-oss/create-t3-turbo
blockeed
blockeedOP10mo ago
Maybe im missing something, but it says Auth is not implemented in this repo on expo's side (since it cannot use Next auth). However I still want to go with a solution that can handle both web and auth and owning user data would be crucial so for example Clerk does not work for me in this use case
Monster
Monster9mo ago
hey did you ever get any further on this? I'm looking at doing basically the same type of thing
blockeed
blockeedOP9mo ago
I went with Clerk and synchronized user data with my own database

Did you find this page helpful?