signIn

abstract suspend fun signIn(credential: AuthCredential, linkWithCurrentUser: Boolean = false): Result<KMPAuthUser>

Exchanges credential for a signed-in session.

Return

the signed-in (or linked) user, or a failed Result.

Parameters

credential

Credential obtained from an identity provider.

linkWithCurrentUser

When true, links the credential to the currently signed-in user instead of creating a new session (matches the 2.x linkAccount semantics of the UiContainer composables).