KtorPasskeyContractCodec
interface KtorPasskeyContractCodec<RegistrationInput, RegistrationState, RegistrationOutput, AuthenticationInput, AuthenticationState, AuthenticationOutput>
Serialization contract for a Ktor-backed passkey backend.
The transport has no serialization implementation dependency. The state returned from each start decoder is passed unchanged to the corresponding finish encoder.
Functions
Link copied to clipboard
Link copied to clipboard
abstract fun decodeAuthenticationStart(body: String): ValidationResult<CeremonyStart<AuthenticationState, PublicKeyCredentialRequestOptions>>
Link copied to clipboard
Returns a safe backend error message when available, otherwise null.
Link copied to clipboard
Link copied to clipboard
abstract fun decodeRegistrationStart(body: String): ValidationResult<CeremonyStart<RegistrationState, PublicKeyCredentialCreationOptions>>
Link copied to clipboard
abstract fun encodeAuthenticationFinish(state: AuthenticationState, response: RawAuthenticationResponse): String
Link copied to clipboard
Link copied to clipboard
abstract fun encodeRegistrationFinish(state: RegistrationState, response: RawRegistrationResponse): String
Link copied to clipboard