Try out option with Bearer token authorization used the following swagger config with packages
“swagger-autogen”: “^2.16.0”, “swagger-ui-express”: “^4.2.0” did this in API project of the tadafuq
const options = { openapi: '3.0.0' }; const swaggerAutogen = require('swagger-autogen')(options) const outputFile = './swagger.json' // const endpointsFiles = [ // "./routes/auth.js", // "./routes/categories.js", // "./routes/comments.js", // "./routes/docs.js", // "./routes/feelings.js", // "./routes/histories.js", // "./routes/replies.js", // "./routes/search.js", // "./routes/subscriptions.js", // "./routes/users.js", // "./routes/videos.js", // ] const endpointsFiles = ["....