cyberhybridhub/lib/config/auth_config.dart
2026-05-20 10:22:58 -05:00

26 lines
1.2 KiB
Dart

/// Web OAuth 2.0 client ID (Google Cloud → Credentials → Web application).
///
/// Used for:
/// - **Android**: `serverClientId` when not in `google-services.json`
/// - **Linux desktop**: `google_sign_in_all_platforms` clientId
///
/// **Web (required for Firefox / strict privacy):** `clientId` for the
/// Google Identity Services fallback when Firebase popup sign-in fails.
/// Popup is tried first; redirect is not used (sessionStorage breaks under ETP).
///
/// Find it: Firebase Console → Project settings → Your apps → Web app,
/// or Authentication → Sign-in method → Google → Web SDK configuration.
///
/// Also add authorized JavaScript origins in Google Cloud for web dev:
/// `http://localhost:8080` (see [web_dev_config.yaml] in the project root).
const String? googleWebOAuthClientId =
'155018389717-cers33qaak01urmf4sa04s85h7kcocpt.apps.googleusercontent.com';
/// @deprecated Use [googleWebOAuthClientId].
const String? googleSignInServerClientId = googleWebOAuthClientId;
/// Linux desktop OAuth client secret (same Web client as above).
const String? googleOAuthDesktopClientId = googleWebOAuthClientId;
const String? googleOAuthDesktopClientSecret = null;