I'm storing both the access token and refresh token in local storage. Is this correct?
Detail: I have an angular 2 application. The user loads my application, and then authenticates (username, password) with my api. They are provided with an access token and refresh token. The client uses the access token until it expires (15 minutes) and then, after hitting a 401 error, uses the refresh token (lifetime of 6 months) to update the access token.
My setup is similar to this: http://bitoftech.net/2014/07/16/enable-oauth-refresh-tokens-angularjs-app-using-asp-net-web-api-2-owin/
I've seen similar questions and advice to store refresh tokens on the server, but I'm not really sure how I'd do that in my case (as far as I can see the client kind of needs to keep that refresh token locally): where to store - access token and refresh token in OAuth 2.0