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
As in #39, I'm attempting to set an authorization header in my data store provider to avoid having to do this for each call.
I'm using Ionic's Storage library to store and retrieve the token I'll be passing along with the header. Unfortunately, the call to retrieve the token returns a Promise and because of this, by the time the provider is initialized and the HTTP request has been made, the header has not yet been set.
Hi,
As in #39, I'm attempting to set an authorization header in my data store provider to avoid having to do this for each call.
I'm using Ionic's Storage library to store and retrieve the token I'll be passing along with the header. Unfortunately, the call to retrieve the token returns a
Promise
and because of this, by the time the provider is initialized and the HTTP request has been made, the header has not yet been set.Does anyone know a way this can be done?
Thanks!
Relevant code:
The text was updated successfully, but these errors were encountered: