Add Passkey Support & Pint

This commit is contained in:
2026-04-21 15:56:46 +02:00
parent 8ae9eaaadb
commit 05d4ef1bdb
57 changed files with 2151 additions and 716 deletions

View File

@@ -0,0 +1,18 @@
<script>
async function authenticateWithPasskey(remember = false) {
const response = await fetch('{{ route('passkeys.authentication_options') }}')
const options = await response.json();
const startAuthenticationResponse = await startAuthentication({ optionsJSON: options, });
const form = document.getElementById('passkey-login-form');
form.addEventListener('formdata', ({formData}) => {
formData.set('remember', remember);
formData.set('start_authentication_response', JSON.stringify(startAuthenticationResponse));
});
form.submit();
}
</script>