Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Validate credentials at beginning of new session #58

Open
efstajas opened this issue May 2, 2022 · 0 comments
Open

Validate credentials at beginning of new session #58

efstajas opened this issue May 2, 2022 · 0 comments

Comments

@efstajas
Copy link
Member

efstajas commented May 2, 2022

When starting a new session and credentials are stored client-side, we should call an endpoint on the API (maybe called /user) that validates the credentials and responds either 200 or 401 depending on whether they are still valid. If the response is 401, we should clear client-side auth data to ensure the UI renders in the logged-out state.

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

No branches or pull requests

1 participant