Skip to content

Commit

Permalink
Update @simplewebauthn/browser to v11
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk committed Oct 14, 2024
1 parent f5402bb commit dce0186
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build": "npm-run-all build:*"
},
"dependencies": {
"@simplewebauthn/browser": "^10.0.0"
"@simplewebauthn/browser": "^11.0.0"
},
"devDependencies": {
"esbuild": "^0.24.0",
Expand Down
2 changes: 1 addition & 1 deletion resources/js/webauthn/authenticate.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const authenticateWebauthn = ({
return this.notifyPublicKeyError();
}

return startAuthentication(publicKey)
return startAuthentication({ optionsJSON: publicKey })
.then(async answer => {
if (isFunction(this.loginUsing)) {
const callback = this.loginUsing.bind(this);
Expand Down
2 changes: 1 addition & 1 deletion resources/js/webauthn/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const registerWebauthn = ({
return this.notifyPublicKeyError();
}

return startRegistration(publicKey)
return startRegistration({ optionsJSON: publicKey })
.then(resp => this.$wire.call(this.verifyKeyMethod, resp))
.catch(error => this.error = error?.response?.data?.message ?? error)
.finally(() => this.processing = false);
Expand Down
1 change: 1 addition & 0 deletions resources/views/components/sudo/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class="mb-4"
loginMethod: 'confirm',
})"
:id="$this->getId() . '.webauthnAuthenticate'"
wire:ignore.self
>
@include('profile-filament::livewire.partials.webauthn-unsupported')

Expand Down

0 comments on commit dce0186

Please sign in to comment.