iOS
GoogleSignIn setup, GIDConfiguration, URL schemes, and credential fallback order.
Native implementation
iOS uses the GoogleSignIn SDK.
Before sign-in, the package creates:
GIDConfiguration(clientID: iosClientId, serverClientID: webClientId)GID is Google's prefix for the iOS Sign-In SDK types. For example:
GIDSignInis the sign-in manager.GIDConfigurationholds OAuth client configuration.GIDGoogleUseris the signed-in user object.
Client IDs
clientID is the iOS OAuth client ID.
serverClientID is Google's SDK name for the OAuth Web client ID. The package
public API calls it webClientId because that is the actual credential you
provide.
iOS client ID lookup order
If iosClientId is not passed, the native module tries:
GIDClientIDinInfo.plist.CLIENT_IDfrom bundledGoogleService-Info.plist.
If no iOS client ID is available, sign-in fails before opening Google.
URL scheme
iOS must be able to return from Google to your app. Register the reversed iOS client ID as a URL scheme:
com.googleusercontent.apps.<reversed-ios-client-id>The Expo config plugin can derive this from iosClientId when the client ID has
the standard *.apps.googleusercontent.com format.
Clear credential state
On iOS, clearGoogleCredentialState() calls:
GIDSignIn.sharedInstance.signOut()