OAuth2 popup in a webview

We have an existing SPA (React) that we are using Expo to wrap with a webview and add notifications. OAuth works great in a normal browser but in the webview after you login to Facebook/Twitter and grant permission you are left with the redirect_url white page that is supposed to be a separate tab/window that auto closes.

Has anyone been able to make this play nicely with Expo?

I’m looking at auth0 but that presents plenty of problems of its own since it’s a SPA and I can’t easily use OnNavigate to attach my own auth.

Hi @llloyd

One thing you might try is to use AuthSession from the Expo SDK just for auth and then communicate the token, etc. into the the web view.


Just an idea.

have a look in the details of

Works without native package and catches the redirect internally.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.