Files
hstream/resources/views/vendor/passkeys/livewire/partials/createScript.blade.php
2026-04-21 15:56:46 +02:00

12 lines
326 B
PHP

@script
<script>
Livewire.on('passkeyPropertiesValidated', async function (eventData) {
const passkeyOptions = eventData[0].passkeyOptions;
const passkey = await startRegistration({ optionsJSON: passkeyOptions });
@this.call('storePasskey', JSON.stringify(passkey));
});
</script>
@endscript