Deleting organization and cannot login anymore
Describe the bug
Haven't logged in a while. Wanted to delete everything and start all over. Deleted organization and got both "Success" and "Error" toast, from there everything was bugged. When I refreshed the page it got stuck at loading.
To Reproduce
Steps to reproduce the behavior:
- Delete only organization there is
Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot of the screen it is now stuck:
Screenshot of the console:
Screenshot of the response on failing promise:
After deleting cookies and site data I can login again, but it was still bugged until I made an organization.
hey @akhilmhdh, the main reason for this issue is when a user deletes the organization then we delete the data from the db but not from the jwt token, because of this the jwt token says the user has the organization ID but the db returns nothing.
@Ayush-Dutt-Sharma @maidul98 i went through this issue and code,i found that we can do two things first one we can blacklist all the tokens associated with the deleted orgId ,second one is while checking the token.organizationId we will check also if it also present in database but i think this will resolve only toast thing other things will be there,what is your suggestion on this ?