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
This is either bug or (regressed) feature request.
Search terms you've used
buildAuthenticatedFetch
Impacted package
Which packages do you think might be impacted by the bug ?
solid-client-authn-core
Description
It looks like since v2, the library no longer supports passing custom fetch to buildAuthenticatedFetch (used to be first argument). That can be considered a breaking change and feature regression. Please note that others depend directly on buildAuthenticatedFetch, and passing custom fetch can be very useful. In my case building authenticated request in Cypress.
Expected result
It would be awesome if we can continue passing custom fetch to buildAuthenticatedFetch (e.g. as an option). I don't mind if API changes (e.g. passing fetch as optional property in second parameter).
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. It is indeed a braking change, although it wasn't documented as such because we don't document @inrupt/solid-client-authn-core as public API, it is used internally by our other libraries. It is good to know that this is a use case for community members, we will consider this for future changes and releases so that this doesn't happen again.
If that doesn't work, I'm happy to assist making the change. Things were modified in 494af00, where you'll notice the unauthFetch parameter was removed. If you add it back into the options, it will be a non-breaking change (from a library standpoint) that will make it possible to fix the regression with a minimal code change on your end. What do you think?
My use case here is to send authenticated requests during testing to CSS with cy.request, which is copied from the ingenious work by folks of SolidCryptPad. I haven't found a way to wrap cy.request around standard fetch, and I'm not sure it's possible.
For now, I have copied and edited the relevant file to the affected codebase. So, this is not urgent.
It would be indeed helpful if breaking changes to important core API get documented in the future. OTOH if fetch becomes a second-argument options' optional parameter, it won't have to be a breaking change. 🙂
This is either bug or (regressed) feature request.
Search terms you've used
buildAuthenticatedFetch
Impacted package
Which packages do you think might be impacted by the bug ?
Description
It looks like since v2, the library no longer supports passing custom fetch to
buildAuthenticatedFetch
(used to be first argument). That can be considered a breaking change and feature regression. Please note that others depend directly onbuildAuthenticatedFetch
, and passing custom fetch can be very useful. In my case building authenticated request in Cypress.Expected result
It would be awesome if we can continue passing custom fetch to buildAuthenticatedFetch (e.g. as an option). I don't mind if API changes (e.g. passing fetch as optional property in second parameter).
The text was updated successfully, but these errors were encountered: