Package-level declarations

The demo server client and its result types.

Types

Link copied to clipboard
data class DemoAccount(val userHandle: String, val credentialIds: List<String>)

The demo user this app last registered or signed in as. The demo server keeps it for 24 hours.

Link copied to clipboard
@Serializable
data class DemoServerConfig(val rpId: String, val origins: List<String>)

GET /api/demo/server-config: the RP ID and the origins the demo server accepts.

Link copied to clipboard
class DemoServerException(val status: Int?, message: String, cause: Throwable? = null) : Exception

The demo server answered with an error (status and its message), or could not be reached (status null).

Link copied to clipboard
@Serializable
data class DemoVerdict(val verified: Boolean, val credentialId: String, val signCount: Long, val userVerified: Boolean, val backupEligible: Boolean = false, val backedUp: Boolean = false, val aaguid: String? = null, val userHandle: String, val origin: String, val rpId: String)

What the demo server answers after verifying a registration or an assertion. Every field comes from the server.

Link copied to clipboard

Client for the hosted PassKi demo relying party, so you can try passkeys in your app before you have a domain or a WebAuthn server. For evaluation only: demo users expire after 24 hours and the domain is shared.