Skip to content

Core\Passkey

Passkey sign-in (WebAuthn). A passkey replaces a password. registerOptions and verifyRegistration add a passkey to an account. signInOptions and verifySignIn sign the user in with it. In the browser, JavaScript calls navigator.credentials with the options.

Members

5 members.

MemberSignature
registerOptionsregisterOptions(string $rpId, string $rpName, bytes $userId, string $userName, array<Core\Passkey\Credential> $existing = []): string
verifyRegistrationverifyRegistration(string $response, string $rpId, string $origin): Core\Passkey\Credential
signInOptionssignInOptions(string $rpId, array<Core\Passkey\Credential> $allowed = []): string
credentialIdcredentialId(string $response): bytes
verifySignInverifySignIn(string $response, Core\Passkey\Credential $stored, string $rpId, string $origin): Core\Passkey\Credential