Screens redrawn from the project’s source code with demo data
Open source · 2024
AuthBridge
One login for a native app and its WebView
A proof of concept for sharing a native sign-in with a web app inside a WebView. The React Native app signs in with Firebase, a Cloud Function issues a custom token and the web app picks it up over postMessage.
My role
My own open-source proof of concept.
What it does
- Native sign-in with email, Google or Apple
- A Cloud Function exchanges the session for a custom token
- The token reaches the web app inside the WebView over postMessage
- Sign-out and session checks are bridged the same way
- Platforms
- iOSAndroidWebBackend
- Stack
- React NativeFirebase AuthCloud FunctionsWebView
- Type
- My own product · Solo build


