Interface OAuth.GoogleOneTap
-
- All Implemented Interfaces:
public interface OAuth.GoogleOneTapProvides start, authenticate, and signOut methods for native Google One Tap authentication
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOAuth.GoogleOneTap.StartParametersData class used for wrapping parameters to start a Google OneTap flow
-
Method Summary
Modifier and Type Method Description abstract StytchResult<INativeOAuthData>start(OAuth.GoogleOneTap.StartParameters parameters)Begin a Google OneTap login flow. abstract Unitstart(OAuth.GoogleOneTap.StartParameters parameters, Function1<StytchResult<INativeOAuthData>, Unit> callback)Begin a Google OneTap login flow. abstract CompletableFuture<StytchResult<INativeOAuthData>>startCompletable(OAuth.GoogleOneTap.StartParameters parameters)Begin a Google OneTap login flow. abstract UnitsignOut(Activity activity)Sign a user out of Google Play Services -
-
Method Detail
-
start
abstract StytchResult<INativeOAuthData> start(OAuth.GoogleOneTap.StartParameters parameters)
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
- Parameters:
parameters- required to begin the OneTap flow- Returns:
NativeOAuthResponse
-
start
abstract Unit start(OAuth.GoogleOneTap.StartParameters parameters, Function1<StytchResult<INativeOAuthData>, Unit> callback)
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
- Parameters:
parameters- required to begin the OneTap flowcallback- a callback that receives a NativeOAuthResponse
-
startCompletable
abstract CompletableFuture<StytchResult<INativeOAuthData>> startCompletable(OAuth.GoogleOneTap.StartParameters parameters)
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
- Parameters:
parameters- required to begin the OneTap flow- Returns:
NativeOAuthResponse
-
-
-
-