hasanaktasTRH
Convex Community11mo ago
1 reply
hasanaktasTR

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",
    });

This function never returns a redirect url on the web. It automatically pushes a new page in the browser.
Was this page helpful?