GoogleOneTap
interface GoogleOneTap
Provides start, authenticate, and signOut methods for native Google One Tap authentication
Types
Link copied to clipboard
data class StartParameters @JvmOverloads constructor(val context: Activity, val clientId: String, val autoSelectEnabled: Boolean = false, val sessionDurationMinutes: Int = DEFAULT_SESSION_TIME_MINUTES)
Data class used for wrapping parameters to start a Google OneTap flow
Functions
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
Link copied to clipboard
abstract fun startCompletable(parameters: OAuth.GoogleOneTap.StartParameters): CompletableFuture<NativeOAuthResponse>
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