Skip to main content
Protocol Standalone authentication client for apps that manage auth independently of wallet operations.

Overview

Access via CrossmintSDK/authClient. For most apps the built-in email OTP flow through CrossmintAuthManager is sufficient; use AuthClient when you need explicit control over the OTP lifecycle (e.g. custom UI, headless flows).

Example

Instance Methods

logout()

Invalidates the current session.

sendOTP(to:)

Sends an OTP to the given email address.

Return Value

An OTPRequest whose requestId is required by verifyOTP(code:requestId:).

verifyOTP(code:requestId:)

Validates the OTP and establishes a session.

Parameters