openapi-typescript
openapi-typescript copied to clipboard
Document for conditional authentication failed.
Description
Document for conditional authentication failed. The code in documentation failed with error
TypeError: Cannot read properties of undefined (reading 'startsWith')
Reproduction
Just follow the document
Expected result
url should be passed to onRequest
https://github.com/openapi-ts/openapi-typescript/blob/69f0628b5ad22c3535c43653b70bd8fbc5f3887d/packages/openapi-fetch/src/index.js#L110-L116
https://github.com/openapi-ts/openapi-typescript/blob/69f0628b5ad22c3535c43653b70bd8fbc5f3887d/packages/openapi-fetch/src/index.d.ts#L127-L145
Checklist
- [x] I’m willing to open a PR (see CONTRIBUTING.md)