AuthBridge, screen 1
AuthBridge, screen 2
AuthBridge token hand-off sequence
How the login travels from the native app to the web app

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

Want something like this?

Tell me what you need built. I'll reply with an approach, a timeline and a price.