
As stated above I'm having an issue in Flutter/Riverpod where account.get()
throws an exception if the user is not logged in, which means my user auth state is either in Error or logged in, I would love a way to query for that info without the possibility of exception but
I have this provider for account.get() which returns an AppwriteException if they're not logged in
@Riverpod(keepAlive: true)
Future<User> authState(AuthStateRef ref) async {
return await ref.watch(appwriteAccountProvider).get();
}
I can't do anything about the exception I thought it would return an AsyncValue<User> so it would be an AsyncError How do I properly do this? maybe get rid of the await?

Didn't you have another thread on this topic?

Yeah sort of? I wanted to make a new thread because the title of the last one was a question and this one I meant to make more of a solution, I can delete this one though and edit the title if that's preferable, sorry about that

Ya probably best to continue the conversation in your existing post

Ill delete this
Recommended threads
- Unable to Access Appwrite Console & API ...
I have been unable to access my Appwrite console and related services for the past two weeks. Additionally, the Appwrite integration on my production website ha...
- Mobile performance issues and persistent...
Hi Appwrite team, I really appreciate the work you're doing on Appwrite — it's a powerful and promising platform. I'd like to share a couple of usability sugge...
- Function 404 error - Deployment with the...
I have a function in my Appwrite Cloud (free plan) project that cannot be accessed or deleted (404 in both UI and CLI). I'm stuck at the 5 functions limit and c...
