Package com.stytch.sdk.consumer.crypto
Interface CryptoWallet
-
- All Implemented Interfaces:
public interface CryptoWalletThe CryptoWallet interface provides methods for authenticating a user using one of the supported Crypto Wallets (Ethereum or Solana)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCryptoWallet.AuthenticateStartParametersA data class wrapping the parameters needed to begin a crypto wallet authentication flow
public final classCryptoWallet.AuthenticateParametersA data class wrapping the parameters needed to complete a crypto wallet authentication flow
-
Method Summary
Modifier and Type Method Description abstract StytchResult<CryptoWalletAuthenticateStartResponseData>authenticateStart(CryptoWallet.AuthenticateStartParameters parameters)Begin a crypto wallet authentication flow abstract UnitauthenticateStart(CryptoWallet.AuthenticateStartParameters parameters, Function1<StytchResult<CryptoWalletAuthenticateStartResponseData>, Unit> callback)Begin a crypto wallet authentication flow abstract CompletableFuture<StytchResult<CryptoWalletAuthenticateStartResponseData>>authenticateStartCompletable(CryptoWallet.AuthenticateStartParameters parameters)Begin a crypto wallet authentication flow abstract StytchResult<IAuthData>authenticate(CryptoWallet.AuthenticateParameters parameters)Complete a crypto wallet authentication flow abstract Unitauthenticate(CryptoWallet.AuthenticateParameters parameters, Function1<StytchResult<IAuthData>, Unit> callback)Complete a crypto wallet authentication flow abstract CompletableFuture<StytchResult<IAuthData>>authenticateCompletable(CryptoWallet.AuthenticateParameters parameters)Complete a crypto wallet authentication flow -
-
Method Detail
-
authenticateStart
abstract StytchResult<CryptoWalletAuthenticateStartResponseData> authenticateStart(CryptoWallet.AuthenticateStartParameters parameters)
Begin a crypto wallet authentication flow
- Parameters:
parameters- the parameters required to begin a crypto wallet authentication flow- Returns:
CryptoWalletAuthenticateStartResponse
-
authenticateStart
abstract Unit authenticateStart(CryptoWallet.AuthenticateStartParameters parameters, Function1<StytchResult<CryptoWalletAuthenticateStartResponseData>, Unit> callback)
Begin a crypto wallet authentication flow
- Parameters:
parameters- the parameters required to begin a crypto wallet authentication flowcallback- a callback that receives a CryptoWalletAuthenticateStartResponse
-
authenticateStartCompletable
abstract CompletableFuture<StytchResult<CryptoWalletAuthenticateStartResponseData>> authenticateStartCompletable(CryptoWallet.AuthenticateStartParameters parameters)
Begin a crypto wallet authentication flow
- Parameters:
parameters- the parameters required to begin a crypto wallet authentication flow- Returns:
CryptoWalletAuthenticateStartResponse
-
authenticate
abstract StytchResult<IAuthData> authenticate(CryptoWallet.AuthenticateParameters parameters)
Complete a crypto wallet authentication flow
- Parameters:
parameters- the parameters required to complete a crypto wallet authentication flow- Returns:
AuthResponse
-
authenticate
abstract Unit authenticate(CryptoWallet.AuthenticateParameters parameters, Function1<StytchResult<IAuthData>, Unit> callback)
Complete a crypto wallet authentication flow
- Parameters:
parameters- the parameters required to complete a crypto wallet authentication flowcallback- a callback that receives an AuthResponse
-
authenticateCompletable
abstract CompletableFuture<StytchResult<IAuthData>> authenticateCompletable(CryptoWallet.AuthenticateParameters parameters)
Complete a crypto wallet authentication flow
- Parameters:
parameters- the parameters required to complete a crypto wallet authentication flow- Returns:
AuthResponse
-
-
-
-