Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting organization and cannot login anymore #2304

Open
GrbavaCigla opened this issue Aug 18, 2024 · 3 comments
Open

Deleting organization and cannot login anymore #2304

GrbavaCigla opened this issue Aug 18, 2024 · 3 comments

Comments

@GrbavaCigla
Copy link

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:

  1. Delete only organization there is

Screenshots

If applicable, add screenshots to help explain your problem.
Screenshot of the screen it is now stuck:
image

Screenshot of the console:
image

Screenshot of the response on failing promise:
image

@GrbavaCigla
Copy link
Author

GrbavaCigla commented Aug 18, 2024

After deleting cookies and site data I can login again, but it was still bugged until I made an organization.

@Ayush-Dutt-Sharma
Copy link
Contributor

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.

Screenshot 2024-08-20 at 12 38 17 AM

@Mubashirshariq
Copy link

Mubashirshariq commented Sep 6, 2024

@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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants