diff --git a/package-lock.json b/package-lock.json index 0b6a1902..a800516f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,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", @@ -2859,17 +2859,19 @@ } }, "node_modules/@simplewebauthn/browser": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@simplewebauthn/browser/-/browser-10.0.0.tgz", - "integrity": "sha512-hG0JMZD+LiLUbpQcAjS4d+t4gbprE/dLYop/CkE01ugU/9sKXflxV5s0DRjdz3uNMFecatRfb4ZLG3XvF8m5zg==", + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/@simplewebauthn/browser/-/browser-11.0.0.tgz", + "integrity": "sha512-KEGCStrl08QC2I561BzxqGiwoknblP6O1YW7jApdXLPtIqZ+vgJYAv8ssLCdm1wD8HGAHd49CJLkUF8X70x/pg==", + "license": "MIT", "dependencies": { - "@simplewebauthn/types": "^10.0.0" + "@simplewebauthn/types": "^11.0.0" } }, "node_modules/@simplewebauthn/types": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@simplewebauthn/types/-/types-10.0.0.tgz", - "integrity": "sha512-SFXke7xkgPRowY2E+8djKbdEznTVnD5R6GO7GPTthpHrokLvNKw8C3lFZypTxLI7KkCfGPfhtqB3d7OVGGa9jQ==" + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/@simplewebauthn/types/-/types-11.0.0.tgz", + "integrity": "sha512-b2o0wC5u2rWts31dTgBkAtSNKGX0cvL6h8QedNsKmj8O4QoLFQFR3DBVBUlpyVEhYKA+mXGUaXbcOc4JdQ3HzA==", + "license": "MIT" }, "node_modules/@tootallnate/once": { "version": "2.0.0", @@ -17457,17 +17459,17 @@ } }, "@simplewebauthn/browser": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@simplewebauthn/browser/-/browser-10.0.0.tgz", - "integrity": "sha512-hG0JMZD+LiLUbpQcAjS4d+t4gbprE/dLYop/CkE01ugU/9sKXflxV5s0DRjdz3uNMFecatRfb4ZLG3XvF8m5zg==", + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/@simplewebauthn/browser/-/browser-11.0.0.tgz", + "integrity": "sha512-KEGCStrl08QC2I561BzxqGiwoknblP6O1YW7jApdXLPtIqZ+vgJYAv8ssLCdm1wD8HGAHd49CJLkUF8X70x/pg==", "requires": { - "@simplewebauthn/types": "^10.0.0" + "@simplewebauthn/types": "^11.0.0" } }, "@simplewebauthn/types": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@simplewebauthn/types/-/types-10.0.0.tgz", - "integrity": "sha512-SFXke7xkgPRowY2E+8djKbdEznTVnD5R6GO7GPTthpHrokLvNKw8C3lFZypTxLI7KkCfGPfhtqB3d7OVGGa9jQ==" + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/@simplewebauthn/types/-/types-11.0.0.tgz", + "integrity": "sha512-b2o0wC5u2rWts31dTgBkAtSNKGX0cvL6h8QedNsKmj8O4QoLFQFR3DBVBUlpyVEhYKA+mXGUaXbcOc4JdQ3HzA==" }, "@tootallnate/once": { "version": "2.0.0", diff --git a/package.json b/package.json index 6eedf253..89a531a4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/AddDeviceDialog.vue b/src/components/AddDeviceDialog.vue index 2f8b5167..5a59f8d9 100644 --- a/src/components/AddDeviceDialog.vue +++ b/src/components/AddDeviceDialog.vue @@ -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) { diff --git a/src/components/Challenge.vue b/src/components/Challenge.vue index 440eb576..77f8a115 100644 --- a/src/components/Challenge.vue +++ b/src/components/Challenge.vue @@ -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':