Achilleas
Achilleas2mo ago

Convex Auth - Redirect to app?

I'm building a hybrid app, and I'm currently using Convex Auth, which works really well on the web. I'm using Capacitor to basically package my app into a webview. I'm wondering how I would make the Google oAuth redirect to my app, instead of the web. Thanks!
2 Replies
Convex Bot
Convex Bot2mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
erquhart
erquhart2mo ago
I would start with the React Native instructions for creating a SignIn button for oauth - it won't work exactly for Capacitor, but should give a good framework for what the approach might look like. Hit this link and hit the React Native tab above the code sample: https://labs.convex.dev/auth/config/oauth#add-sign-in-button If you haven't already, you'll need to look into universal links / deep linking on the client side as well for forming a working link to your app: https://capacitorjs.com/docs/guides/deep-links#website-configuration
Deep Links | Capacitor Documentation
Implement deep linking functionality in an iOS and Android app
OAuth - Convex Auth
Authentication library for your Convex backend

Did you find this page helpful?