passwordless
fun passwordless(rp: RelyingParty, verifier: PasskeyVerifier, persistence: PasskeyPersistence, principals: Principals, user: (Request) -> PasskeyUser?, onUnauthenticated: (Request) -> Response = { Response(UNAUTHORIZED) }, policy: WebAuthnPolicy = WebAuthnPolicy(
authenticatorSelection = AuthenticatorSelection(userVerification = REQUIRED)
), allowedCredentialsFor: (Request) -> List<CredentialDescriptor> = { emptyList() }, newChallenge: () -> Base64UriBlob = { Base64UriBlob.randomChallenge() }): Passkeys(source)
Passkey-only mode: App resolves the registering user from the request - e.g. a signup body - so a brand-new user can create an account with a passkey and no prior session.