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
- android platform invaild origina
It happened today suddenly. Our app says invalid origin. And appwrite cloud says every time we tried to add the app to it: "param platformId" is not optional.
- Team invite - 500 error - no email
When executing ```dart await _repository.teams.createMembership( teamId: event.listId, roles: ['member'], email: event.email, url: 'xxxx', ); ``` I se...
- Help with nameservers
I just added our domain, and as per instruction in the page following, it says, "Add the following nameservers on your DNS provider. ..." I want to keep my cu...