Closed quinndiggity closed 5 years ago
note, setting the following in .env
and regenerating the cached config resolves the issue:
# no value needed, but without the declaration "NULL" is cached instead of an empty string
GOOGLE_SAFETYNET_API_KEY=
php artisan cache:clear
php artisan config:cache
Thank you for the report @quinndiggity
This is already fixed in https://github.com/asbiin/laravel-webauthn/pull/62 https://github.com/monicahq/monica/pull/2706
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Describe the bug When the environment var GOOGLE_SAFETYNET_API_KEY is not set, a 500 error is received when trying to add a webauthn device.
The specific issue is:
^ this check is done, but the default value of
$this->config->get('webauthn.google_safetynet_api_key', '')
isNULL
Likely due to:
./bootstrap/cache/config.php: 'google_safetynet_api_key' => NULL,
it appears bootstrap cache config sets google_safetynet_api_key to NULL, therefore the previous check fails.500 error response body: