Interface OAuth.GoogleOneTap

  • All Implemented Interfaces:

    
    public interface OAuth.GoogleOneTap
    
                        

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

    • Constructor Detail

    • 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 flow
        callback - 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