fix: Previously provisioned JWT's should be revoked on signout (#3639)
* feat: auth.delete endpoint * test
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user