useAuthContext

1function useAuthContext<TType>(type?): AuthContextType<TType>;

Defined in: account-kit/react/src/components/auth/context.ts:73

Type Parameters

Type ParameterDefault type

TType extends | undefined | "email_verify" | "otp_verify" | "totp_verify" | "passkey_verify" | "passkey_create" | "passkey_create_success" | "email_completing" | "oauth_completing" | "initial" | "complete" | "eoa_connect" | "wallet_connect" | "pick_eoa"

| undefined | "email_verify" | "otp_verify" | "totp_verify" | "passkey_verify" | "passkey_create" | "passkey_create_success" | "email_completing" | "oauth_completing" | "initial" | "complete" | "eoa_connect" | "wallet_connect" | "pick_eoa"

Parameters

ParameterTypeDescription

type?

TType

Optional type of authentication step to validate against the current context

Returns

AuthContextType<TType>

The authentication context for the current component