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
Then I have a case when user log out and log in again.
The header fields token is not refreshed.
I have to close the app then open it again to make it work.
How do I handle this case and Is there a way to reset header fields?
The text was updated successfully, but these errors were encountered:
You can modify the defaultHeaderFields property at any time, not just within this function. Modifications to that property won't affect any requests that have already been created, but it will affect requests created after the modification.
That said, you may want to investigate the defaultAuth property instead, which is the preferred way of dealing with the "Authorization" header. That property is designed to support multiple different auth mechanisms, including allowing the auth object to handle a 401 Unauthorized, refresh its credentials, and automatically retry the request (e.g. for implementing OAuth token refresh). I don't know the details of your auth scheme, so I don't know if you can make use of the flexibility of this object. If you really just have a string value that you want to provide, then this property may not get you anything.
I setup httpManager like this
Then I have a case when user log out and log in again.
The header fields token is not refreshed.
I have to close the app then open it again to make it work.
How do I handle this case and Is there a way to reset header fields?
The text was updated successfully, but these errors were encountered: