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 am trying to use auth0 spa plugin and one of its methods to get the access-token to put in authorisation header is asynchronous (getTokenSilently). I would like to use that in beforeSend to setup global Authorisation header but far-fetch doesn't support async beforeSend. Any chance that this can be added?
Ok, I just added the ability to create an asyncbeforeSend(). I haven't written tests yet for this, along with a few other features and fixes I made previously, but try installing the new alpha release, 1.2.0-1 with npm i @websitebeaver/far-fetch@next. I will add testing in the near future as well, but this should work right now. Please let me know if it doesn't.
I am trying to use auth0 spa plugin and one of its methods to get the access-token to put in authorisation header is asynchronous (getTokenSilently). I would like to use that in beforeSend to setup global Authorisation header but far-fetch doesn't support async beforeSend. Any chance that this can be added?
Axious has something similiar - see below.
The text was updated successfully, but these errors were encountered: