Skip to content

Kirby 6.0.0

$webauthn->verifyRegister()

Verifies the registration of a new passkey and returns the credential to store

$webauthn->verifyRegister(mixed $payload, string|null $challenge): array{id: string, publicKey: string, counter: int, createdAt: int, attestation: string|null}

Parameters

Name Type Default
$payloadrequired mixed no default value
$challenge stringornull no default value

Return type

array{id: string, publicKey: string, counter: int, createdAt: int, attestation: string|null}

Exceptions

Parent class

Kirby\Auth\Service\Webauthn