I want to include cookie authorization in my swagger docs, however I seem to be making no progress.
According to https://docs.nestjs.com/openapi/security there looks as though cookie auth is supported in nestjs-swagger.
However, according to https://swagger.io/docs/specification/authentication/cookie-authentication/ for Swagger UI and Editor, cookie auth is not supported for "try it out"
I am unsure if I am implementing cookie auth incorrectly or if it is just not supported.
Bellow is the implementation I am trying.
In the DocumentBuilder():
.addCookieAuth('authCookie')
In controller:
@ApiCookieAuth()
I've tried adding my cookie name 'authCookie' to the @ApiCookieAuth() tag.
I have also tried using .addCookieAuth('authCookie', {type: 'apiKey',in: 'cookie'})
Any way I try I get a JWT token not found error. I know this does work when I use postman so I am confused as to why I am getting this issue.