axios-jwt
axios-jwt copied to clipboard
StorageType undefined outside the interceptor?
I'm a back-end coder, so go easy on me here, as this may be outright pilot error.
Setting up and using authTokenInterceptor looks to be working just fine, thanks for that - but, when trying to follow the examples in the README, to call e.g. setAuthTokens, isLoggedIn, etc outside the context of the interceptor, it seems like StorageProxy.Storage is just returning null
, so those calls simply do nothing.
What am I missing here? If one calls setAuthTokens such as in the Login/Logout example, where is the storage actually being set?
I'm happy to give more detail or code snips, etc, as needed.