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

[Backend] As a user, I can automatically re-authenticate if my access token expires #36

Open
liamstevens111 opened this issue Feb 17, 2023 · 0 comments
Assignees
Labels
0.2.0 feature New feature or request
Milestone

Comments

@liamstevens111
Copy link
Owner

liamstevens111 commented Feb 17, 2023

Why

access_tokens has an expirary time so to not force the user to re-enter login details the "session" is maintained.

Acceptance Criteria

  • Upon Error 401 call the token refresh endpoint to obtain a new access token

Design

Use Axios Interceptors on error response code to check existing local storage for a refresh_token

Resources

(Optional) Add useful resources such as links to documentation, implementation ideas, or best practices.

@liamstevens111 liamstevens111 added this to the 0.1.0 milestone Feb 17, 2023
@liamstevens111 liamstevens111 added feature New feature or request 0.1.0 labels Feb 17, 2023
@liamstevens111 liamstevens111 self-assigned this Feb 17, 2023
@liamstevens111 liamstevens111 moved this to Ready for development in React.js Survey project Feb 17, 2023
@liamstevens111 liamstevens111 changed the title [Backend] As a user, I can automartically re-authenicate if my access token expires [Backend] As a user, I can automatically re-authenticate if my access token expires Feb 17, 2023
@liamstevens111 liamstevens111 modified the milestones: 0.1.0, 0.2.0 Feb 23, 2023
@liamstevens111 liamstevens111 moved this from Ready for development to In development in React.js Survey project Feb 23, 2023
@liamstevens111 liamstevens111 moved this from In development to Ready for development in React.js Survey project Feb 23, 2023
@liamstevens111 liamstevens111 moved this from Ready for development to In development in React.js Survey project Feb 23, 2023
@liamstevens111 liamstevens111 moved this from In development to In code review in React.js Survey project Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.2.0 feature New feature or request
Projects
Status: In code review
Development

No branches or pull requests

1 participant