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

We need some way to check when accessToken has expired #53

Open
ryderwishart opened this issue Sep 4, 2023 · 1 comment
Open

We need some way to check when accessToken has expired #53

ryderwishart opened this issue Sep 4, 2023 · 1 comment

Comments

@ryderwishart
Copy link
Contributor

Right now we are storing the access token in sessionStorage, and hiding the 'remember me' checkbox (cf. #52).

Ideally, 'remember me' would store the token to localStorage. However, we need some way of determining when the user's token has expired.

Logout has to clear session and local storage once we make a more robust solution.

@woodwardmw
Copy link
Collaborator

I now have a workaround for this, in branch #85 - the chatbot_auth_check_decorator adds logged_in: False to the json it returns, if the token isn't verified server-side, and the UI then uses this to prompt the user to log in. This was the only way I could think of doing it without verifying the token client-side, which would involve having the Supabase secrets available client-side.

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