GoogleSignInConfig

data class GoogleSignInConfig(val serverClientId: String = GOOGLE_WEB_CLIENT_ID, val filterByAuthorizedAccounts: Boolean = true, val signUpFallback: Boolean = true, val autoSelectEnabled: Boolean = true)(source)

Configuration for GetGoogleIdOption.

Parameters

filterByAuthorizedAccounts

true shows only accounts that already signed in to this app — the returning-user path, and the one that must be tried first so the bottom sheet stays quiet.

signUpFallback

when the filtered request finds nothing (every brand-new user), retry once with the filter off. Without this, a first-time user gets "no credentials" and the sign-in button looks broken. The cost of the retry is one extra round trip on a cold account only.

autoSelectEnabled

skips the chooser when exactly one account has been used before. Only honoured after the user has signed in once, so it cannot surprise a first-time user.

Constructors

Link copied to clipboard
constructor(serverClientId: String = GOOGLE_WEB_CLIENT_ID, filterByAuthorizedAccounts: Boolean = true, signUpFallback: Boolean = true, autoSelectEnabled: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard