Skip to content

Missing axios.interceptors.request config after refresh #3

@KosKou

Description

@KosKou

Version
I'm using the entire project with the backend and frontend from the github repository

Test Case
full-stack-with-react-and-spring-boot project backend & frontend clone

Steps to reproduce
-Get logged in
-List todos page
-Check that jwt is being sending into the request as typically
-Refresh the page (CTRL+R or F5)
-Check that jwt is no longer being sent in the request

Expected Behavior
Persist the token header configuration that was set in axios.interceptors.request after every event as refresh page.

Actual Behavior
The axios.interceptos.request configuration is getting cleared after refreshing the page so, the request(GET, POST, DELETE) that works with the auth token will not work anymore.

image

Is there anyway to persist the token auth? or keep the axios.interceptors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions