⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes an issue preventing passkeys from being created.

Problem

The web-auth/webauthn-lib package recently changed what is returned by the assertionResponseValidator->check() method.

It previously returned a PublicKeyCredentialSource instance but it now returns a CredentialRecord instance, causing a type error in our code.

Solution

This PR fixes it by accepting any object (as CredentialRecord only exists in 5.3.x) and converting the CredentialRecord to what we're expecting.

These changes are part of the package's 5.3.x branch which is yet to be tagged, but seems to be used when creating new Statamic sites.

An alternative solution would be to pin the package to 5.2.x and handle the necessary changes after 5.3.x has been tagged.


Fixes #13561

@duncanmcclean duncanmcclean linked an issue Jan 15, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[6.x] Cannot create passkey

2 participants