axios-jwt icon indicating copy to clipboard operation
axios-jwt copied to clipboard

StorageType undefined outside the interceptor?

Open explody opened this issue 1 year ago • 1 comments

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.

explody avatar Oct 31 '23 17:10 explody