I store the access token and update token in local storage. Is it correct?
Details: I have an angular 2 application. A user downloads my application and then authenticates (username, password) using api. They are given an access token and an update token. The client uses the access token until it expires (15 minutes), and then, after hitting 401, it uses the update token (6 month life) to update the access token.
My setup is similar: http://bitoftech.net/2014/07/16/enable-oauth-refresh-tokens-angularjs-app-using-asp-net-web-api-2-owin/
I saw similar questions and tips to store update tokens on the server, but I'm not quite sure how to do this in my case (as far as I see that the client wants to save this token to be updated locally): where to store - access token and update the token in OAuth 2.0
No one has answered this question yet.
See similar questions:
or similar:
Source: https://habr.com/ru/post/1652955/More articles:Applying an operation on multiple columns with a fixed column in pandas - pythonРазмещение различных значений для Sys.sleep в цикле, несколько значений времени - rpython convolution with different size - python2nd generation sql cloud triggers - google-cloud-sql"special alert alerts" without a ref or key link - reactjsКак я могу изменить * на курсив javascript? - javascriptButton positioning not working - jqueryFirefox WebExtension Settings Page - javascriptUpdate WebExtension webRequest.onBeforeRequest listener URL settings from a separate script - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1652960/send-data-from-js-to-function-in-the-controller-and-get-the-result-from-the-function&usg=ALkJrhgREO8R3Y1MXu1lpA8k3BJGdZyCngAll Articles