GoogleOneTap

interface GoogleOneTap

Provides start, authenticate, and signOut methods for native Google One Tap authentication

Types

Link copied to clipboard
data class StartParameters(val context: Activity, val clientId: String, val autoSelectEnabled: Boolean = false, val sessionDurationMinutes: UInt = Constants.DEFAULT_SESSION_TIME_MINUTES)

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

Functions

Link copied to clipboard
abstract fun signOut(activity: Activity)

Sign a user out of Google Play Services

Link copied to clipboard
abstract fun start(parameters: OAuth.GoogleOneTap.StartParameters, callback: (NativeOAuthResponse) -> Unit)

Begin a Google OneTap login flow. Returns an authenticated session if the flow was successfully initiated. If this returns an error, 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