hasanaktasTR
hasanaktasTR6d ago

convex-auth force get redirect url

hi When we run the login function for web in convex-auth, it automatically opens the url in the browser, but for react native, redirect url return and we open that url in the app browser ourselves. (Example: Expo WebBrowser.openAuthSessionAsync) I need to apply the flow in react native in a capacitor-based application, but since capacitor is web-based, it redirects directly to the login. Can't we get the redirect url manually and process it ourselves, as in react native?
const { redirect } = await signIn("google", {
redirectTo: "http://localhost:3100",
});
const { redirect } = await signIn("google", {
redirectTo: "http://localhost:3100",
});
This function never returns a redirect url on the web. It automatically pushes a new page in the browser.
1 Reply
Convex Bot
Convex Bot6d 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!

Did you find this page helpful?