src/api/app.js
Function basic
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function basic (req, authOrSecDef, scopesOrApiKey, callback) {
const authHeader = req.header('authorization')
const match = authHeader && authHeader.match(/^Basic (.+)$/)
const token = match && match[1]
debug('Verifying token %s', token)
- Create a ticketCreate a ticket