-
-
Notifications
You must be signed in to change notification settings - Fork 42
Description
What happened?
Hi!
I am experiencing a 500 server error when trying to authenticate using passkeys. The error is as follows:
production.ERROR: Spatie\LaravelPasskeys\Actions\FindPasskeyToAuthenticateAction::execute(): Argument #2 ($passkeyOptionsJson) must be of type string, null given, called in /home/domain/vendor/spatie/laravel-passkeys/src/Http/Controllers/AuthenticateUsingPasskeyController.php on line 24 {"userId":506,"exception":"[object] (TypeError(code: 0): Spatie\\LaravelPasskeys\\Actions\\FindPasskeyToAuthenticateAction::execute(): Argument #2 ($passkeyOptionsJson) must be of type string, null given, called in /home/domain/vendor/spatie/laravel-passkeys/src/Http/Controllers/AuthenticateUsingPasskeyController.php on line 24 at /home/domain/vendor/spatie/laravel-passkeys/src/Actions/FindPasskeyToAuthenticateAction.php:18)
The passkey is selected and the browser is redirected (POST) to https://domain.com/passkeys/authenticate where the error appears.
Does anyone know how to fix this?
How to reproduce the bug
Sometimes it works, other times it happens. Not sure how to reproduce it other than logging in multiple times.
Package Version
1.0
PHP Version
8.3
Laravel Version
12
Which operating systems does with happen with?
Linux
Notes
No response