Add Passkey Support & Pint
This commit is contained in:
11
resources/views/vendor/passkeys/livewire/partials/createScript.blade.php
vendored
Normal file
11
resources/views/vendor/passkeys/livewire/partials/createScript.blade.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user