how to set nswag swagger2tsclient fetch options like credentials: "include"?
Asked Answered
L

0

6

Here's the commandline I use to generate my API calls:

nswag swagger2tsclient /input:swagger.json /output:./gen/index.ts /ExtensionCode:./base/extension.ts /ClientBaseClass:BaseClient /UseGetBaseUrlMethod:true /GenerateOptionalParameters:true

However, this won't generate API client with fetch including credential options I I have to manually set it.

After google for several days, I still couldn't find how to set.

Lovemaking answered 27/8, 2018 at 22:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.