Question · NestJS course · Module 11: Swagger and OpenAPI

The persistAuthorization Option

What does the persistAuthorization option do in swaggerOptions?

Answer options

  • Automatically logs the user in
  • Encrypts authorization data
  • Blocks access without authorization
  • Preserves the JWT token after refreshing the Swagger UI page

You can check the correct answer by solving this task in the CodeWorlds game.