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
Would you be interested in a basic auth middleware/extension? Currently, if a URL contains basic auth credentials fetch and by extension wretch will just throw an error.
The middleware I'd like to implement would extract the username/pw from the URL and add them as an Authorization header.
The extension could provide a basicAuth method so that users don't have know how to construct a basic auth header themselves.
The text was updated successfully, but these errors were encountered:
BendingBender
changed the title
Basic auth middleware
Basic auth middleware/extension
Mar 4, 2024
Would you be interested in a basic auth middleware/extension? Currently, if a URL contains basic auth credentials
fetch
and by extensionwretch
will just throw an error.The middleware I'd like to implement would extract the username/pw from the URL and add them as an
Authorization
header.The extension could provide a
basicAuth
method so that users don't have know how to construct a basic auth header themselves.The text was updated successfully, but these errors were encountered: