
I have some questions related to Auth in Android(Kotlin) Jetpack Compose.
1:- How can I know with Account.Get()
that if a user is already logged in or need to login? So that I can show the main content or Login Screen.
2:- Is Accoount.Get()
always returns updated value? I mean if I change the name of a authenticated user from server, will it be immediately updated to the user device? If no, then how can I achieve this?

- If account.get() throws an error, specifically missing scope account... That means the user is not logged in.
The most optimal approach is probably saving locally some value so the user is redirected to the login screen immediately at least first time, and then once logged in, redirect it to home screen, saving you bandwith usage and unnecesary checks. Then if there is some error, check if it's due to not having a valid session (you run account.get then)
- Yes, it fetches the session from the server so consequently the data will always be updated.
Recommended threads
- REQUEST FAILED IN MIGRATION
I was trying to moved my archived project to a self-host database . Though the Project is "read only" but there's a message that I can view and migrate data to...
- Is it possible to getRow with all relati...
With the new Opt-In relationship loading, is it possible to query getRow to get all attributes and relationships and possibly even cascading relationships? I tr...
- Auth showing wrong numbers of users
I have 6 verified users but it shows 5 24 hours before I have 5 users that time its showing 4 users. Project ID: `68aed705001ef67ac979`
