gamesheet_sdk.common.auth.firebase module¶
Shared Firebase Auth helpers.
Provides utilities for interpreting Firebase Authentication REST API responses. Used by both the admin
browser-based login (login) and the teams HTTP-only login
(login).
- gamesheet_sdk.common.auth.firebase.extract_firebase_error(body, status)[source]¶
Extract a human-readable error string from a Firebase Auth response body.
Firebase returns
{"error": {"code": N, "message": "CODE_NAME", ...}}; themessageis a stable identifier likeEMAIL_NOT_FOUNDthat we surface verbatim so callers can react programmatically.