Tried making this to handle existing sessions: Https://github.com/appwrite/appwrite/discussions/3938#discussioncomment-3746725
When using account.get() to see if there is a session or not, instead of catching the exception, it just shows unhandled exception general authorization scope in the console (not printing the error and not making what's inside catch(e)).
Here is the code used:
manageLogin() {
try{
account.get();
}
catch(e){
print(e);
}
}
this function needs async await
I will try that
Yes, worked ๐
[SOLVED] Manage unhandled exception
Recommended threads
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- Compatibility issue with Kakao OpenID Co...
**Context:** I am attempting to integrate **Kakao Login** (one of the largest social login providers in South Korea) into my Flutter application using Appwrite'...