I have heard that JWT tokens are recommended to be stored as follows:
access_tokenin the application memory (as an example I was given - closures)refresh_tokenin cookie entries (HttpOnly)
At the moment, my access_token is stored in localStorage and is taken to check the authorization status:
isLoggedIn: state => !!state.token
in Vuex
refresh_token is stored in cookies.
I want to get away from this. I 'm wondering how to still store access_token in the closure ?