Skip to content

Commit

Permalink
feat(logout): add logout function
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmicunda committed Jun 11, 2019
1 parent d5713cd commit c919b6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,7 @@ export const login = async (

return { accountId, accessToken: access_token, idToken: id_token };
};

export const logout = async (server: any, token: string): Promise<void> => {
return server.delete('/auth/logout').set('Authorization', `Bearer ${token}`);
};

0 comments on commit c919b6a

Please sign in to comment.