Skip to content

Commit

Permalink
Updated logout return value
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Nov 5, 2023
1 parent 5ba8a12 commit 6d2e825
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,9 @@ export async function login(email: string, password: string): Promise<Account &
* @param reason why the account is being logged out (Requires authenication)
* @returns The logged out accounts data
*/
export async function logout(id: string, reason?: string): Promise<Account> {
export async function logout(id: string, reason?: string): Promise<boolean> {
checkAccountAttribute('id', id);
const result = await request<AccountResult>('POST', 'account/logout', { id, reason });
return parseAccount(result);
return await request<boolean>('POST', 'account/logout', { id, reason });
}

/**
Expand Down

0 comments on commit 6d2e825

Please sign in to comment.