Ari
CCConvex Community
•Created by ദ്ദി /ᐠ˵- ⩊ -˵マ on 8/30/2024 in #support-community
Convex Auth on React Native (expo)
Hi @sshader , I have a request for you...
I'm trying to implement Convex Auth with Google OAuth across multiple apps (web, iOS, android / nextjs + expo react native) in a Monorepo (similar issues to the above example).
As you likely know, there's an inherent conflict when attempting to use multiple Google OAuth Client Ids for web vs mobile apps during redirect processes.
I just came across a Supabase thread where they posted a homegrown solution to this JUST 3 DAYS AGO (https://github.com/supabase/supabase-swift/issues/221).
I love Convex, I've been developing with it for several months now, and I'm keen to stay with Convex and Convex Auth obviously, so I'm wondering if you could help craft a similar solution, help expand the documentation, or otherwise help me get my implementation working for addressing how to deal with multiple app client ids while implementing Google OAuth in the
convex/auth.ts
and SignInWithGoogle.tsx
that you created in your EXPO-CONVEX-AUTH template. Obviously my goal is to have it work both in local and prod.
At this stage I'm developing my monorepo as a boilerplate with a web app and two mobile apps, all using a shared single Convex db and shared user
and authSessions
tables, and I'll be integrating Stripe next before moving on the actual app builds. I'll be using it for a consumer-targeted suite of products/apps, not SASS. I'd be happy to post it as an open source project for the Convex community/customers to use moving forward if you can help me get it working.
I wasted several weeks before Convex Auth rolled out configuring a complex custom AWS Cognito-NextAuth/Authjs-ConvexAuthAdapter
config with shared user pool, only to have you guys roll out your own official Adapter (is beautiful) and then Convex Auth itself which is even better.
Appreciate your consideration...9 replies