diff --git a/src/account.ts b/src/account.ts index ae0244d..ce1fb16 100644 --- a/src/account.ts +++ b/src/account.ts @@ -270,10 +270,9 @@ export async function login(email: string, password: string): Promise { +export async function logout(id: string, reason?: string): Promise { checkAccountAttribute('id', id); - const result = await request('POST', 'account/logout', { id, reason }); - return parseAccount(result); + return await request('POST', 'account/logout', { id, reason }); } /**