create

Creates a new SignIn object with the provided parameters.

Return

A ClerkResult containing the created SignIn object on success, or a ClerkErrorResponse on failure.

Parameters

params

The raw parameters to create the SignIn object with.


Deprecated

Use the Clerk.auth method for your strategy: signIn { }, signInWithPassword { }, signInWithOtp { }, signInWithTicket(), signInWithPasskey() or signInWithBiometrics(). For a password reset, start with signIn { } and then call sendResetPasswordCode { }. For Strategy.Transfer, use transferToSignIn(). This overload will be removed in the next major version.

Starts the sign in process.

Note: Prefer using Clerk.auth.signIn or other Clerk.auth.* methods for new code.

Return

A ClerkResult containing the created SignIn object on success, or a ClerkErrorResponse on failure.

Parameters

params

The strategy to authenticate with.


suspend fun create(params: SignIn.CreateParams.Strategy.Passkey, preferImmediatelyAvailableCredentials: Boolean = false): ClerkResult<SignIn, ClerkErrorResponse>

Deprecated

Use Clerk.auth.signInWithPasskey(). This overload will be removed in the next major version.

Replace with

import com.clerk.api.Clerk
Clerk.auth.signInWithPasskey(preferImmediatelyAvailableCredentials)

Starts the sign in process with a passkey.

Return

A ClerkResult containing the created SignIn object on success, or a ClerkErrorResponse on failure.

Parameters

params

The passkey strategy to authenticate with.

preferImmediatelyAvailableCredentials

Whether the credential provider should only return credentials available without extra provider UI.