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

pb.auth_store.clear() doesn't seem to be clearing the session #111

Open
obxjames opened this issue Dec 9, 2024 · 3 comments
Open

pb.auth_store.clear() doesn't seem to be clearing the session #111

obxjames opened this issue Dec 9, 2024 · 3 comments

Comments

@obxjames
Copy link

obxjames commented Dec 9, 2024

Hi

Just want a bit more insight into how pb.auth_store.clear() should be working. I seem clear the session down but never seems to logout correctly. I have been calling it and just doesn't want to work correctly.

Thanks everyone 😄

@thangngoc89
Copy link
Contributor

@obxjames could you describe why you think it

just doesn't want to work correctly.

pb.auth_store.clear() just set the token to an empty string. It doesn't execute any call to the sever.

@obxjames
Copy link
Author

Sorry I should explain, I'm using python reflex, when using the authstore it doesn't want to set the token in local storage, I've created my own function to add the cookie however I wanted to see how others were collecting and terminating the session.

@thangngoc89
Copy link
Contributor

@obxjames you could decode the JWT token to see which token belongs to which users.

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

2 participants