Skip to content

Instantly share code, notes, and snippets.

@iampato
Created July 1, 2024 09:20
Show Gist options
  • Save iampato/fb74bd34f9130ecf430b1e74028568e2 to your computer and use it in GitHub Desktop.
Save iampato/fb74bd34f9130ecf430b1e74028568e2 to your computer and use it in GitHub Desktop.

JWT + OPENAPI

Setting up jwt api things:

const options = new DocumentBuilder()
    .setTitle('My App')
    .setSchemes('https')
    .setDescription('My App API documentation')
    .setVersion('1.0')
    .addBearerAuth()
    .build()

Nestjs decorator: @ApiBearerAuth()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment