cancel
Showing results for 
Search instead for 
Did you mean: 

security: - bearerAuth: [] how to generate a JWT to authorize users

New Contributor

security: - bearerAuth: [] how to generate a JWT to authorize users

I wanted to provide security to my api as below

security:
- bearerAuth: []

components:

securitySchemes:
    bearerAuth:
    type: http
    scheme: bearer
    bearerFormat: JWT # optional, for documentation purposes only

 

 

How to generate a JWT for the users to authorize?