$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
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |