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

Login doesn't work after logout #804

Open
nezort11 opened this issue Nov 21, 2023 · 0 comments
Open

Login doesn't work after logout #804

nezort11 opened this issue Nov 21, 2023 · 0 comments

Comments

@nezort11
Copy link

Describe the bug
Login doesn't work after calling AuthClient.logout because it deletes KEY_STORAGE_KEY which was set in AuthClient.create because of that there is an error when using that authClient

To Reproduce
Steps to reproduce the behavior:

  1. Login
  2. Refresh page (call AuthClient.create)
  3. Logout (deletes Index DB)
  4. Try to login (without initing using AuthClient.create)
  5. It looks like it is login but after that when you start to use that client - is is broken

Expected behavior

Logout should not only delete Index DB but also set auth client to the state like after calling AuthClient.create

Fixed in the demo app: krpeacock/auth-client-demo#15

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

1 participant