Overview
SuperBox supports OAuth authentication via Google and GitHub. The flow depends on the client:- Web / Mobile: Use the Firebase SDK to obtain an ID token, then exchange it via
POST /auth/login/provider. - CLI: Use the device authorization flow documented in Device Flow.
Provider Login
Exchange a provider-issued token for a SuperBox session token.Endpoint
Request Body
OAuth provider:
google or githubFirebase ID token from
signInWithPopup or signInWithRedirect. Use this or access_token.OAuth access token from the provider. Use this or
id_token.Example Request
Response
Firebase ID token (JWT). Use as
Authorization: Bearer <id_token>.Refresh token for renewing the session.
Seconds until expiry (3600 = 1 hour).
Authenticated email address.
Firebase user ID.