mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
fixing device token on logout
This commit is contained in:
parent
1fb2907b80
commit
6ee9bd87d0
@ -131,8 +131,7 @@ export function useAppContext() {
|
||||
updateState({ loggingOut: true });
|
||||
try {
|
||||
await messaging().deleteToken();
|
||||
const token = await messaging().getToken();
|
||||
updateState({ deviceToken: token });
|
||||
deviceToken.current = await messaging().getToken();
|
||||
await clearLogin(state.server, state.token);
|
||||
}
|
||||
catch (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user