mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 20:49:16 +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 });
|
updateState({ loggingOut: true });
|
||||||
try {
|
try {
|
||||||
await messaging().deleteToken();
|
await messaging().deleteToken();
|
||||||
const token = await messaging().getToken();
|
deviceToken.current = await messaging().getToken();
|
||||||
updateState({ deviceToken: token });
|
|
||||||
await clearLogin(state.server, state.token);
|
await clearLogin(state.server, state.token);
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user