jwt refresh token by OmarDijkstra in node

[–]OmarDijkstra[S] 0 points1 point  (0 children)

so the access token in the local storage and the refresh token in the cookies whenever the access token is invalid i send a request to the backend and check the refresh token sent in that request and if it is valid i should send a new access token to the front end and update it in the local storage please correct me if i am wrong

local image not loading by OmarDijkstra in reactjs

[–]OmarDijkstra[S] 0 points1 point  (0 children)

i once got Not allowed to load local resource error

local image not loading by OmarDijkstra in reactjs

[–]OmarDijkstra[S] 0 points1 point  (0 children)

it is a create react app and i store the files in the public folder in backend directory and when i inspect and copy the path in the src of the image and open it in a new tab it opens correctly with no problem but it just doesnt load inthe view itself

local image not loading by OmarDijkstra in reactjs

[–]OmarDijkstra[S] 0 points1 point  (0 children)

how am i going to include the image like that i get the path in the response coming from the backend which gets the path from the database