We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to configure swagger with JWT to make requests with a token?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Hey👋🏼, I have a functional solution but not perfect:
config/swagger.js
securityDefinitions
bearerAuth: { type: 'apiKey', in: 'header', name: 'Authorization' },
options
securitySchemes: { bearerAuth: { type: 'http', scheme: 'bearer', bearerFormat: 'JWT' } },
PS : You can change bearerAuth by JWT
bearerAuth
JWT
security
* /api/auth: * post: * tags: * - Auth * security: * - bearerAuth: [] * summary: Auth JWT login * . . .
Bearer
Bearer <your-token>
Have a nice day!
swagger.zip -> full file config/swagger.js
No branches or pull requests
how to configure swagger with JWT to make requests with a token?
The text was updated successfully, but these errors were encountered: