mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
fix for failure to clear tokens on logout
This commit is contained in:
parent
b860494ca9
commit
ce0c1ad75f
@ -153,7 +153,8 @@ export function useAppContext() {
|
|||||||
await messaging().deleteToken();
|
await messaging().deleteToken();
|
||||||
deviceToken.current = await messaging().getToken();
|
deviceToken.current = await messaging().getToken();
|
||||||
}
|
}
|
||||||
await clearLogin(state.server, state.token);
|
const { server, token } = access.current || {};
|
||||||
|
await clearLogin(server, token);
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user