You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
So, this feels awfully hacky but everything was solved in my case by simply having StorageProxt.Storage default to localStorage rather than null. What should be the right way of handling this?
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.
The text was updated successfully, but these errors were encountered: