firebase

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 13 Imported by: 0

README

auth-firebase

Firebase Authentication driver for togo auth. The frontend signs in with the Firebase SDK and POSTs the ID token to the backend, which verifies it (RS256 against Google certs) and issues a togo session.

togo install togo-framework/auth
togo install togo-framework/auth-firebase

Env: FIREBASE_PROJECT_ID. Endpoint: POST /api/auth/firebase { id_token }.

Documentation

Overview

Package firebase verifies Firebase Authentication ID tokens and issues a togo session. The frontend signs in with the Firebase SDK and POSTs the ID token to /api/auth/firebase; this driver verifies it (RS256 against Google's public certs, with issuer/audience checks) and find-or-creates the user via auth.

Install: `togo install togo-framework/auth-firebase`. Env: FIREBASE_PROJECT_ID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL