Try to fix passkeys login loop

This commit is contained in:
DariusIII
2026-05-08 19:41:51 +02:00
parent a6b1cd364d
commit a196e22b56
3 changed files with 5 additions and 3 deletions
@@ -25,7 +25,7 @@ final class GeneratePasskeyAuthenticationOptionsAction extends BaseGeneratePassk
$options = Serializer::make()->toJson($options);
Session::flash('passkey-authentication-options', $options);
Session::put('passkey-authentication-options', $options);
return $options;
}
@@ -44,7 +44,7 @@ final class PasskeyLoginController extends Controller
}
}
$passkeyOptionsJson = Session::get('passkey-authentication-options');
$passkeyOptionsJson = Session::pull('passkey-authentication-options');
if (! is_string($passkeyOptionsJson) || $passkeyOptionsJson === '') {
Log::channel('failed_login')->warning(
+3 -1
View File
@@ -43,7 +43,9 @@
@endif
<div x-show="!showPassword" x-cloak>
@include('partials.passkey-authenticate', ['autoPromptPasskey' => ! $errors->any()])
@include('partials.passkey-authenticate', [
'autoPromptPasskey' => ! $errors->any() && ! session()->has('authenticatePasskey::message'),
])
<button
type="button"