diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2024-10-10 14:05:20 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-10 14:05:20 +0900 |
| commit | a624546812af072d23579bce81f85668f9a97c09 (patch) | |
| tree | df1cd8a79ecacf9b01e6307d67f65f6a097110ed /packages/frontend/src/account.ts | |
| parent | refactor(frontend): prefix css variables (#14725) (diff) | |
| download | misskey-a624546812af072d23579bce81f85668f9a97c09.tar.gz misskey-a624546812af072d23579bce81f85668f9a97c09.tar.bz2 misskey-a624546812af072d23579bce81f85668f9a97c09.zip | |
fix(frontend): ユーザー登録完了時にサインインAPIを別途使用していたのを修正 (#14738)
* fix(frontend): ユーザー登録完了時にサインインAPIを別途使用していたのを修正
* emitされるオブジェクトの型を変更したことに伴う修正
* Update Changelog
Diffstat (limited to 'packages/frontend/src/account.ts')
| -rw-r--r-- | packages/frontend/src/account.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/frontend/src/account.ts b/packages/frontend/src/account.ts index 84d89b1b3f..b91834b94f 100644 --- a/packages/frontend/src/account.ts +++ b/packages/frontend/src/account.ts @@ -226,7 +226,7 @@ export async function openAccountMenu(opts: { function showSigninDialog() { const { dispose } = popup(defineAsyncComponent(() => import('@/components/MkSigninDialog.vue')), {}, { - done: res => { + done: (res: Misskey.entities.SigninFlowResponse & { finished: true }) => { addAccount(res.id, res.i); success(); }, @@ -236,9 +236,9 @@ export async function openAccountMenu(opts: { function createAccount() { const { dispose } = popup(defineAsyncComponent(() => import('@/components/MkSignupDialog.vue')), {}, { - done: res => { - addAccount(res.id, res.i); - switchAccountWithToken(res.i); + done: (res: Misskey.entities.SignupResponse) => { + addAccount(res.id, res.token); + switchAccountWithToken(res.token); }, closed: () => dispose(), }); |