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
Hi,
When interacting with OAuth Transparent token refresh is almost always desired.
As WS stands on the shoulder of Alamofire, and Alamofire v4 supports a new RequestRetrier protocol,
how can I configure WS so that when my authentication token expires I get a new one and retry the request?
Thanks!
The text was updated successfully, but these errors were encountered:
I have the same issue with Firebase bearer tokens, they also need to be refreshed and set as headers before each call.
Alamofire 5 will support an asynchronous version of RequestAdapter that will make a token refresh like that trivial. It also has retry but no need for that in this case.
Alamofire 4 has RequestAdapter and I'll add that to ws - that should be trivial to add. But it's not async in AF4 and so won't exactly work for the Firebase case, and I OAuth transparent token is similar.
Hi,
When interacting with OAuth Transparent token refresh is almost always desired.
As WS stands on the shoulder of Alamofire, and Alamofire v4 supports a new RequestRetrier protocol,
how can I configure WS so that when my authentication token expires I get a new one and retry the request?
Thanks!
The text was updated successfully, but these errors were encountered: