SignInCredential

sealed interface SignInCredential

What the user picked in Passkeys.signInOrPassword.

Open: new subtypes may be added in minor releases; keep an else branch in exhaustive whens.

Inheritors

Types

Link copied to clipboard
class Passkey(val assertion: PasskeyAssertion) : SignInCredential

The user chose a passkey; send assertion to your server. Instances are created by PassKi; the constructor is internal API so fields can be added without breaking binaries.

Link copied to clipboard
class Password(val id: String, val password: String) : SignInCredential

The user chose a saved password. Instances are created by PassKi; the constructor is internal API so fields can be added without breaking binaries.