summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components
diff options
context:
space:
mode:
authorzyoshoka <107108195+zyoshoka@users.noreply.github.com>2024-10-03 18:33:56 +0900
committerGitHub <noreply@github.com>2024-10-03 18:33:56 +0900
commit2a4ab0e1878c7e45e939574cb4eb6c23f6371802 (patch)
treea516d87574a18e8d0cd6a6f095fde29bd9f5ee42 /packages/frontend/src/components
parentfeat: サーバー初期設定時に初期パスワードを要求できる... (diff)
downloadmisskey-2a4ab0e1878c7e45e939574cb4eb6c23f6371802.tar.gz
misskey-2a4ab0e1878c7e45e939574cb4eb6c23f6371802.tar.bz2
misskey-2a4ab0e1878c7e45e939574cb4eb6c23f6371802.zip
fix(misskey-js): type fixes related to signup and signin (#14679)
Diffstat (limited to 'packages/frontend/src/components')
-rw-r--r--packages/frontend/src/components/MkSignin.vue5
1 files changed, 2 insertions, 3 deletions
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<void> {
credential: credential.toJSON(),
context: passkey_context.value,
});
- }).then((res: SigninWithPasskeyResponse) => {
+ }).then(res => {
emit('login', res.signinResponse);
return onLogin(res.signinResponse);
});