Fix undefined property error on passkey login #118

Merged
jonny merged 1 commit from fix/passkey-login-undefined-id-property into develop 2026-08-21 16:34:02 +02:00
Owner

Webauthn\PublicKeyCredential has no $id property (only $rawId, inherited from Credential). Every passkey login attempt was throwing Undefined property: Webauthn\PublicKeyCredential::$id and failing with a 500. Encode $rawId the same way it's stored during registration to look up the matching Passkey record.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01LHN7V9kyZxrsxaspMSqoGJ

`Webauthn\PublicKeyCredential` has no `$id` property (only `$rawId`, inherited from `Credential`). Every passkey login attempt was throwing `Undefined property: Webauthn\PublicKeyCredential::$id` and failing with a 500. Encode `$rawId` the same way it's stored during registration to look up the matching Passkey record. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LHN7V9kyZxrsxaspMSqoGJ
Webauthn\PublicKeyCredential has no $id property (only $rawId,
inherited from Credential). Every passkey login attempt was throwing
Undefined property: Webauthn\PublicKeyCredential::$id and failing
with a 500. Encode $rawId the same way it's stored during
registration to look up the matching Passkey record.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LHN7V9kyZxrsxaspMSqoGJ
jonny merged commit 4ed98c30b2 into develop 2026-08-21 16:34:02 +02:00
jonny deleted branch fix/passkey-login-undefined-id-property 2026-08-21 16:34:02 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jonny/jonnybarnes.uk!118
No description provided.