Alternative to Clerk for cross-platform app (Next.js / React Native + Expo)
I’m looking to build a cross-platform app (web + mobile) and I love the DX that comes with the t3 stack.
Ive seen the turborepo templates but one major issue sticks out to me: create-t3-turbo doesn’t seem to have an auth solution for RN + Expo, and the other template forces the use of Clerk.
Yes Clerk is a great product, but their pricing is insane for anything consumer-focused (lots of MAUs) so what are some viable alternatives for handling auth across web + mobile?
7 Replies
I went with supabase myself. I wrote an article to help you set up with supabase instead of nextAuth.
https://dev.to/remusris/t3-stack-template-supabase-w-auth-db-and-shadcn-ui-basic-setup-2bl9 Github Link: https://github.com/remusris/t3_supabase_demo
https://dev.to/remusris/t3-stack-template-supabase-w-auth-db-and-shadcn-ui-basic-setup-2bl9 Github Link: https://github.com/remusris/t3_supabase_demo
DEV Community
T3 Stack Template : Supabase (w/ Auth + DB) and Shadcn-UI Basic Setup
Introduction In this guide, we will cover how to convert the base T3 stack config to use...
GitHub
GitHub - remusris/t3_supabase_demo: T3 demo with supabase auth + db
T3 demo with supabase auth + db. Contribute to remusris/t3_supabase_demo development by creating an account on GitHub.
This looks pretty sweet, would you include all the React Native/Expo stuff in the same repo when adding the mobile app?
this is not the t3 turbo that has the mobile stuff integrated via expo. I can find you a repo for that but it uses a multi-schema db so you’ll have to change that.
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...
Ah gotcha. Not too familiar with multi-schema vs. single-schema, so if I went with the single schema I’d have to create the expo project in a separate repo and then call the api from the original one?
Asking because I’d rather build the web app first either way
Supabase is great
Yeah, calling the api from the nextJS webapp. Haven't used expo before but that sounds right.
It'd be a multi repo setup that way