We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Setting globalParams has no effect, parameters are not added to request
To Reproduce Steps to reproduce the behavior:
export const myClient = () => createClient<NormalizeOAS<typeof spec>>({ endpoint: '<url>', globalParams: { credentials: 'include' }, // not applied })
Expected behavior
I expected parameters would have been added
Environment:
package-name...
Additional context As a workaround, I added a custom plugin, which worked.
const credentialsSetter: ClientPlugin = { onRequestInit({ requestInit }) { requestInit.credentials = 'include' }, } export const myClient = () => createClient<NormalizeOAS<typeof spec>>({ plugins: [credentialsSetter], endpoint: '<url>', })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Setting globalParams has no effect, parameters are not added to request
To Reproduce Steps to reproduce the behavior:
Expected behavior
I expected parameters would have been added
Environment:
package-name...
: "fets": "^0.8.3",Additional context
As a workaround, I added a custom plugin, which worked.
The text was updated successfully, but these errors were encountered: