fix: Previously provisioned JWT's should be revoked on signout (#3639)

* feat: auth.delete endpoint

* test
This commit is contained in:
Tom Moor
2022-06-07 13:57:17 -07:00
committed by GitHub
parent 0de6650aa5
commit 56393f39b7
5 changed files with 62 additions and 2 deletions

View File

@@ -253,6 +253,12 @@ export default class AuthStore {
@action
logout = async (savePath = false) => {
if (!this.token) {
return;
}
client.post(`/auth.delete`);
// remove user and team from localStorage
Storage.set(AUTH_STORE, {
user: null,