Closed nazrinharris closed 7 months ago
Should be completed with 8748c7e
Quick question old me, why would I store only the uid
and username
? Why not just store the user's whole profile? Or at the very least, store their email
? Because I've committed to using the uid
and email
for identification purposes, and storing username
seems, at best, redundant.
This would be in
auth
, and will use shared preferences. Basically, whenever the user logs in, it'll append a map oflogged_in_accounts
which has theuid
as the key andusername
as the value.AuthLocalDS
and a methodstoreLoggedInUser
which stores the user.removeLoggedInUser
.