title: Nestjs swagger authorizations with JWT Token returning unauthorised even after passing token
body: <p>I am using JWT strategy for authorization. I'm using the token to validate the user in all controllers. And I've successfully managed to get the desired response in postman after setting the token in Auth Bearer Token.
  But After Setting the token in swagger  as given bellow
  <a href="https://i.stack.imgur.com/bHShK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bHShK.png" alt="enter image description here" /></a></p>
  <p>I'm getting an Unauthorized response. The reason must be, that somehow inside the swagger my controllers are not getting access to the token.
  Following is the code for swagger documentation.</p>
  <pre><code>export function createDocument(app:INestApplication): OpenAPIObject{
  const builder = new DocumentBuilder()
      .setTitle(SWAGGER_CONFIG.title)
      .setVersion(SWAGGER_CONFIG.version)
      .addBearerAuth({
          type:&quot;http&quot;,
          scheme:'bearer',
          bearerFormat:'JWT',
      
          } ,'access-token')
                          
  const options = builder.build();
  return SwaggerModule.createDocument(app, options);
  </code></pre>
  <p>}</p>
  <p>Following is a example of a controller</p>
  <pre><code>@ApiTags(&quot;Users&quot;)
  @Controller('users')
  export class UserController {
      @UseGuards(JwtAuthGuard)
      @Get('me')
      @ApiOkResponse({ description:&quot;Successfully returned response&quot;})
      @ApiForbiddenResponse({ description: &quot;Forbidden&quot; })
      async profile(@Req() request, @Res() response){
      some code}
  </code></pre>
  <p>following is a example of one of the swagger route
  <a href="https://i.stack.imgur.com/CAPJo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CAPJo.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/BHUXa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BHUXa.png" alt="enter image description here" /></a></p>
  <p>please let me know where am I getting it wrong
  any help would a appreciated</p>