Social login for native apps

Hey everyone looking for some guidance for native apps and social signin. My app is built using capacitor. On my signin page I capture the redirect by running the following
const { data } = await authClient.signIn.social({
  provider,
  callbackURL,
  disableRedirect: true,
});


And then open a webview navigating to the redirect. After that the webview does the redirect dance and bounces through the api that sets the cookie, although in the webview, and finally navigates to the callbackURL, which is set to a deep link to my app.

Not sure exactly how to solve this, has anyone ran into the same issue and have a solution?

Saw there is a expo plugin so will check into the source code and see what is being done there
Was this page helpful?