From 39e01b1dfeeb6f1c5401f07d9c6474e602612383 Mon Sep 17 00:00:00 2001 From: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Mon, 10 Nov 2025 16:52:42 +0900 Subject: refactor(frontend): フロントエンドの型エラー解消 (#16779) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkSignin.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages/frontend/src/components') diff --git a/packages/frontend/src/components/MkSignin.vue b/packages/frontend/src/components/MkSignin.vue index 93a29b0b54..b2f0f4ddcf 100644 --- a/packages/frontend/src/components/MkSignin.vue +++ b/packages/frontend/src/components/MkSignin.vue @@ -120,6 +120,7 @@ function onPasskeyLogin(): void { .then((res) => { passkeyContext.value = res.context ?? ''; credentialRequest.value = parseRequestOptionsFromJSON({ + // @ts-expect-error TODO: misskey-js由来の型(@simplewebauthn/types)とフロントエンド由来の型(@github/webauthn-json)が合わない publicKey: res.option, }); @@ -134,7 +135,7 @@ function onPasskeyDone(credential: AuthenticationPublicKeyCredential): void { waiting.value = true; if (doingPasskeyFromInputPage.value) { - misskeyApi('signin-with-passkey', { + misskeyApi('signin-with-passkey', { credential: credential.toJSON(), context: passkeyContext.value, }).then((res) => { @@ -149,6 +150,7 @@ function onPasskeyDone(credential: AuthenticationPublicKeyCredential): void { tryLogin({ username: userInfo.value.username, password: password.value, + // @ts-expect-error TODO: misskey-js由来の型(@simplewebauthn/types)とフロントエンド由来の型(@github/webauthn-json)が合わない credential: credential.toJSON(), }); } @@ -253,6 +255,7 @@ async function tryLogin(req: Partial): Promi case 'passkey': { if (webAuthnSupported()) { credentialRequest.value = parseRequestOptionsFromJSON({ + // @ts-expect-error TODO: misskey-js由来の型(@simplewebauthn/types)とフロントエンド由来の型(@github/webauthn-json)が合わない publicKey: res.authRequest, }); page.value = 'passkey'; -- cgit v1.2.3-freya