GoogleOneTap

interface GoogleOneTap

Types

Link copied to clipboard
data class AuthenticateParameters(val data: Intent, val sessionDurationMinutes: UInt = Constants.DEFAULT_SESSION_TIME_MINUTES)

Data class used for wrapping parameters to authenticate a Google OneTap flow

Link copied to clipboard
data class StartParameters(    val context: Activity,     val clientId: String,     val oAuthRequestIdentifier: Int,     val autoSelectEnabled: Boolean = false)

Data class used for wrapping parameters to start a Google OneTap flow

Functions

Link copied to clipboard
abstract suspend fun authenticate(parameters: OAuth.GoogleOneTap.AuthenticateParameters): AuthResponse
abstract fun authenticate(parameters: OAuth.GoogleOneTap.AuthenticateParameters, callback: (AuthResponse) -> Unit)

Authenticate a Google OneTap login

Link copied to clipboard
abstract fun signOut()

Sign a user out of Google Play Services

Link copied to clipboard
abstract suspend fun start(parameters: OAuth.GoogleOneTap.StartParameters): Boolean

Begin a Google OneTap login flow. Returns true if the flow was successfully initiated, false if not. If this returns false, it means the Google OneTap flow is not available (no play services on device or user signed out), and you can fallback to the ThirdParty/Legacy Google OAuth flow

abstract fun start(parameters: OAuth.GoogleOneTap.StartParameters, callback: (Boolean) -> Unit)

Begin a Google OneTap login flow.