Moderator
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 so it would be an AsyncError
How do I properly do this?
maybe get rid of the await?