Skip to content

Commit

Permalink
fix(deps): bump @simplewebauthn/browser from 10.0.0 to v11
Browse files Browse the repository at this point in the history
Adjust all usages of startRegistration and startAuthentication according
to the upgrade guide.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
renovate[bot] authored and st3iny committed Oct 14, 2024
1 parent cb95445 commit 9f796b8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
32 changes: 17 additions & 15 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 @@
"@nextcloud/password-confirmation": "^5.1.1",
"@nextcloud/router": "^3.0.1",
"@nextcloud/vue": "^8.19.0",
"@simplewebauthn/browser": "^10.0.0",
"@simplewebauthn/browser": "^11.0.0",
"vue": "^2.7.16",
"vue-click-outside": "^1.1.0",
"vue-material-design-icons": "^5.3.0",
Expand Down
4 changes: 3 additions & 1 deletion src/components/AddDeviceDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ export default {
try {
await confirmPassword()
const registrationData = await RegistrationService.startRegistration()
this.registrationResponse = await startRegistration(registrationData)
this.registrationResponse = await startRegistration({
optionsJSON: registrationData,
})
this.step = RegistrationSteps.NAMING
} catch (error) {
if (error?.name && error?.message) {
Expand Down
4 changes: 3 additions & 1 deletion src/components/Challenge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ export default {

let authResponse
try {
authResponse = await startAuthentication(this.credentialRequestOptions)
authResponse = await startAuthentication({
optionsJSON: this.credentialRequestOptions,
})
} catch (error) {
switch (error.name) {
case 'AbortError':
Expand Down

0 comments on commit 9f796b8

Please sign in to comment.