Closed denisw closed 11 months ago
Thanks, I can see what's causing that. I will look into providing a fix.
Fixed and released as 4.0.1.
Thanks for reporting, feel free to let us know if there would be any other issues.
Wow, that was quick! Thank you. 🙂
Checklist
Description
When I pass a custom
fetch
implementation to theManagementClient
constructor, then it is not forwarded to and used by theTokenProviderMiddleware
created in theManagementClient
constructor.Reproduction
When running the script above, we should see the URL of the token endpoint to be printed, but because the
TokenProviderMiddleware
uses the globalfetch
and not the custom one, it doesn't.Additional context
No response
node-auth0 version
4.0.0
Node.js version
18.17.0