Package-level declarations

Types

Link copied to clipboard
@Serializable
data class SignIn(val id: String, val status: SignIn.Status = Status.UNKNOWN, val supportedIdentifiers: List<String>? = null, val identifier: String? = null, val supportedFirstFactors: List<Factor>? = null, val supportedSecondFactors: List<Factor>? = null, val firstFactorVerification: Verification? = null, val secondFactorVerification: Verification? = null, val userData: SignIn.UserData? = null, val createdSessionId: String? = null)

The SignIn object holds the state of the current sign-in process and provides helper methods to navigate and complete the sign-in lifecycle. This includes managing the first and second factor verifications, as well as creating a new session.

Properties

Link copied to clipboard

Determines the starting first factor for a sign-in attempt based on the preferred sign-in strategy.

Link copied to clipboard

Functions

Link copied to clipboard

Retrieves a list of alternative first factors for the current sign-in attempt, excluding the specified factor and certain strategy types.

Link copied to clipboard

Returns a list of alternative second factors, sorted by a predefined order, excluding the provided factor.

Link copied to clipboard

Attempts to complete the first factor verification process.

Link copied to clipboard

Attempts to complete the second factor verification process.

Link copied to clipboard
suspend fun SignIn.get(rotatingTokenNonce: String? = null): ClerkResult<SignIn, ClerkErrorResponse>

Retrieves the current state of the SignIn object from the server.

Link copied to clipboard

Begins the first factor verification process.

Link copied to clipboard
suspend fun SignIn.prepareSecondFactor(phoneNumberId: String? = null, emailAddressId: String? = null): ClerkResult<SignIn, ClerkErrorResponse>

Prepares the second factor verification for the sign-in process.

Link copied to clipboard
suspend fun SignIn.reload(rotatingTokenNonce: String? = null): ClerkResult<SignIn, ClerkErrorResponse>

Reloads the SignIn from the server.

Link copied to clipboard
suspend fun SignIn.resetPassword(newPassword: String, signOutOfOtherSessions: Boolean = false): ClerkResult<SignIn, ClerkErrorResponse>

Resets the password after verification.

Link copied to clipboard

Sends a verification code to the specified email or phone.

Link copied to clipboard
suspend fun SignIn.sendEmailCode(emailAddressId: String? = null): ClerkResult<SignIn, ClerkErrorResponse>

Sends a verification code to the user's email address for first factor authentication.

Link copied to clipboard
suspend fun SignIn.sendMfaEmailCode(emailAddressId: String? = null): ClerkResult<SignIn, ClerkErrorResponse>

Sends a verification code to the user's email address for MFA (second factor) authentication.

Link copied to clipboard
suspend fun SignIn.sendMfaPhoneCode(phoneNumberId: String? = null): ClerkResult<SignIn, ClerkErrorResponse>

Sends a verification code to the user's phone number for MFA (second factor) authentication.

Link copied to clipboard
suspend fun SignIn.sendPhoneCode(phoneNumberId: String? = null): ClerkResult<SignIn, ClerkErrorResponse>

Sends a verification code to the user's phone number for first factor authentication.

Link copied to clipboard

Sends a password reset verification code.

Link copied to clipboard
fun ERROR CLASS: Symbol not found for SignIn.AttemptFirstFactorParams.toMap(): Map<String, String>
fun ERROR CLASS: Symbol not found for SignIn.AttemptSecondFactorParams.toMap(): Map<String, String>
fun ERROR CLASS: Symbol not found for SignIn.AuthenticateWithRedirectParams.toMap(): Map<String, String>
fun ERROR CLASS: Symbol not found for SignIn.CreateParams.Strategy.toMap(): Map<String, String>
fun ERROR CLASS: Symbol not found for SignIn.PrepareFirstFactorParams.toMap(): Map<String, String>
fun ERROR CLASS: Symbol not found for SignIn.PrepareSecondFactorParams.toMap(): Map<String, String>
fun ERROR CLASS: Symbol not found for SignIn.AttemptFirstFactorParams.toMap(): Map<String, String>
fun ERROR CLASS: Symbol not found for SignIn.AttemptSecondFactorParams.toMap(): Map<String, String>
fun ERROR CLASS: Symbol not found for SignIn.AuthenticateWithRedirectParams.toMap(): Map<String, String>
fun ERROR CLASS: Symbol not found for SignIn.CreateParams.Strategy.toMap(): Map<String, String>
fun ERROR CLASS: Symbol not found for SignIn.PrepareFirstFactorParams.toMap(): Map<String, String>
fun ERROR CLASS: Symbol not found for SignIn.PrepareSecondFactorParams.toMap(): Map<String, String>
Link copied to clipboard

Verifies the first factor with the provided code.

Link copied to clipboard

Verifies MFA with the provided code and type.

Link copied to clipboard

Verifies the first factor with a passkey credential.

Link copied to clipboard

Verifies the first factor with a password.