[#36] [Backend] As a user, I can automatically re-authenticate if my access token expires #37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What happened 👀
access_token
inAuthorization
header on all requestsacces_token
using refresh token upon401
error, if token doesn't exist then redirect tologin
page.Tests for Interceptors for Axios/Request managerThis will be combined into the PR [#25] [#36] [Backend] As a user, I can automatically re-authenticate if my access token expires [Backend] As a user, when I am unauthenticated I can see the Login page [#24] [Backend] As a user, when I am authenticated I can see my profile image at the top of all pages #34Insight 📝
The interceptor will run on all requests. If there was another third-party API used there I would probably refactor this in a way at the adapter level rather than all requests in requestManager
Proof Of Work 📹
Show us the implementation: screenshots, GIFs, etc.