CkGoogleAuthConfig class

Google Sign-In configuration Developer provides: backend URL + what to extract from Google + what to send to backend

Constructors

CkGoogleAuthConfig({required String backendUrl, RequestMethod method = RequestMethod.POST, String? webClientId, List<String> scopes = const ['email', 'profile'], required Map<String, dynamic> bodyBuilder(CkGoogleAuthData data), CkAuthExtractors? responseExtractors})
const

Properties

backendUrl String
Backend endpoint to send Google token to (e.g., '/auth/google', '/auth/social-login')
final
bodyBuilder Map<String, dynamic> Function(CkGoogleAuthData data)
Build the body to send to YOUR backend after Google auth succeeds Receives Google auth data (idToken, accessToken, user info) Must return the body your backend expects
final
hashCode int
The hash code for this object.
no setterinherited
method RequestMethod
HTTP method for backend call (default: POST)
final
responseExtractors CkAuthExtractors?
Extract response from YOUR backend (uses CkAuthExtractors by default) Override if social login response has different structure
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>
Scopes to request from Google (default: email, profile)
final
webClientId String?
Google client ID (for web — Android/iOS use google-services.json/plist)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited