Open selcuk-sahin opened 6 days ago
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>', })
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.