C
C#15mo ago
M B V R K

❔ ASP.NET Core Angular localStorage.SetItem doesn't update the exist value

Hi friends, I'm workig on an ASP.NET Core WEB API that uses Angular as a front-end, I have a service named Auth.Service, it contains this method (https://tinyurl.com/25rcvkcx), In this part ( https://tinyurl.com/5bd78cdc) the app successfully refreshing the Token and this
var refreshTokenResponse = await this.RefreshToken(request).toPromise();
var refreshTokenResponse = await this.RefreshToken(request).toPromise();
Returns the new Token, then when I call this method :
refreshTokenResponse.SetToLocalStorage();
refreshTokenResponse.SetToLocalStorage();
it doesn't update the exist values. SetToLocalStorage's definition here ( https://tinyurl.com/vyyvmu9k ) For the first time is redirected to Dashboard but when I refresh the web page I get returned to the Login component/page. I hope that my issue here is clear, and please does someone here has any idea about how to fix this issue ? Massive thanks in advance <3
GitHub
IContactsApp/RefreshTokenResponseModel.ts at master · MbarkT3STO/IC...
Contribute to MbarkT3STO/IContactsApp development by creating an account on GitHub.
1 Reply
Accord
Accord15mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.