Closed Redzino closed 3 years ago
Hi. I m thinking about how to add access token to api call header. It is good idea to call getuser() promise in every api call with axios? It is better store token in local storage? What is different ?
Yes, call getUser() as that will always load the most current access token.
getUser()
Hi. I m thinking about how to add access token to api call header. It is good idea to call getuser() promise in every api call with axios? It is better store token in local storage? What is different ?