fix(mobile): change password page not navigating back (#3967)

This commit is contained in:
Dhrumil Shah 2023-09-04 19:36:16 -04:00 committed by GitHub
parent 9217fb4094
commit 54775b896f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 4 deletions

View file

@ -113,7 +113,17 @@ class AuthenticationNotifier extends StateNotifier<AuthenticationState> {
Store.delete(StoreKey.accessToken),
]);
state = state.copyWith(isAuthenticated: false);
state = state.copyWith(
deviceId: "",
userId: "",
userEmail: "",
firstName: '',
lastName: '',
profileImagePath: '',
isAdmin: false,
shouldChangePassword: false,
isAuthenticated: false,
);
} catch (e) {
log.severe("Error logging out $e");
}