mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +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();
|
||||
deviceToken.current = await messaging().getToken();
|
||||
}
|
||||
await clearLogin(state.server, state.token);
|
||||
const { server, token } = access.current || {};
|
||||
await clearLogin(server, token);
|
||||
}
|
||||
catch (err) {
|
||||
console.log(err);
|
||||
|
Loading…
Reference in New Issue
Block a user