From 2a4ab0e1878c7e45e939574cb4eb6c23f6371802 Mon Sep 17 00:00:00 2001 From: zyoshoka <107108195+zyoshoka@users.noreply.github.com> Date: Thu, 3 Oct 2024 18:33:56 +0900 Subject: fix(misskey-js): type fixes related to signup and signin (#14679) --- packages/frontend/src/components/MkSignin.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'packages/frontend/src') diff --git a/packages/frontend/src/components/MkSignin.vue b/packages/frontend/src/components/MkSignin.vue index 8ebdac0220..abbff8e1f2 100644 --- a/packages/frontend/src/components/MkSignin.vue +++ b/packages/frontend/src/components/MkSignin.vue @@ -76,7 +76,6 @@ import { computed, defineAsyncComponent, ref } from 'vue'; import { toUnicode } from 'punycode/'; import * as Misskey from 'misskey-js'; import { supported as webAuthnSupported, get as webAuthnRequest, parseRequestOptionsFromJSON } from '@github/webauthn-json/browser-ponyfill'; -import { SigninWithPasskeyResponse } from 'misskey-js/entities.js'; import { query, extractDomain } from '@@/js/url.js'; import { host as configHost } from '@@/js/config.js'; import MkDivider from './MkDivider.vue'; @@ -188,7 +187,7 @@ function onPasskeyLogin(): void { signing.value = true; if (webAuthnSupported()) { misskeyApi('signin-with-passkey', {}) - .then((res: SigninWithPasskeyResponse) => { + .then(res => { totpLogin.value = false; signing.value = false; queryingKey.value = true; @@ -219,7 +218,7 @@ async function queryPasskey(): Promise { credential: credential.toJSON(), context: passkey_context.value, }); - }).then((res: SigninWithPasskeyResponse) => { + }).then(res => { emit('login', res.signinResponse); return onLogin(res.signinResponse); }); -- cgit v1.2.3-freya