Skip to content

Commit

Permalink
add: added the shared preferences logic for the users that does not e…
Browse files Browse the repository at this point in the history
…xist
  • Loading branch information
emilio-kariuki committed Sep 17, 2023
1 parent 27609d7 commit 961e030
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,12 @@ class AuthRepository {
debugPrint("Login Succesfull");
return true;
} else {
debugPrint("Login failed");
return false;
await SharedPreferencesManager().setLoggedIn(value: true);
await SharedPreferencesManager()
.setId(value: userCredential.user!.uid);
await SharedPreferencesManager()
.setName(value: userCredential.user!.displayName!);
return true;
}
} else {
return false;
Expand Down

0 comments on commit 961e030

Please sign in to comment.