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
string
required
OAuth provider:
google or githubstring
Firebase ID token from
signInWithPopup or signInWithRedirect. Use this or access_token.string
OAuth access token from the provider. Use this or
id_token.Example Request
Response
string
Firebase ID token (JWT). Use as
Authorization: Bearer <id_token>.string
Refresh token for renewing the session.
number
Seconds until expiry (3600 = 1 hour).
string
Authenticated email address.
string
Firebase user ID.