diff --git a/packages/frontend/src/components/MkSignin.vue b/packages/frontend/src/components/MkSignin.vue index c07f29fadf3c..247fcb4b29f8 100644 --- a/packages/frontend/src/components/MkSignin.vue +++ b/packages/frontend/src/components/MkSignin.vue @@ -52,7 +52,7 @@ SPDX-License-Identifier: AGPL-3.0-only import { defineAsyncComponent } from 'vue'; import { toUnicode } from 'punycode/'; import { UserDetailed } from 'misskey-js/built/entities'; -import { supported as WebAuthnSupported, get as WebAuthnRequest, parseRequestOptionsFromJSON } from '@github/webauthn-json/browser-ponyfill'; +import { supported as webAuthnSupported, get as webAuthnRequest, parseRequestOptionsFromJSON } from '@github/webauthn-json/browser-ponyfill'; import { showSuspendedDialog } from '@/scripts/show-suspended-dialog'; import MkButton from '@/components/MkButton.vue'; import MkInput from '@/components/MkInput.vue'; @@ -114,7 +114,7 @@ function onLogin(res: any): Promise | void { async function queryKey(): Promise { queryingKey = true; - await WebAuthnRequest(credentialRequest) + await webAuthnRequest(credentialRequest) .catch(() => { queryingKey = false; return Promise.reject(null); @@ -145,7 +145,7 @@ async function queryKey(): Promise { function onSubmit(): void { signing = true; if (!totpLogin && user && user.twoFactorEnabled) { - if (WebAuthnSupported() && user.securityKeys) { + if (webAuthnSupported() && user.securityKeys) { os.api('signin', { username, password, diff --git a/packages/frontend/src/pages/settings/2fa.vue b/packages/frontend/src/pages/settings/2fa.vue index 28509382e3ec..e3cd301df23a 100644 --- a/packages/frontend/src/pages/settings/2fa.vue +++ b/packages/frontend/src/pages/settings/2fa.vue @@ -76,8 +76,6 @@ SPDX-License-Identifier: AGPL-3.0-only