server/core/controllers/api/users/token.ts
Function handleToken
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function handleToken (req: express.Request, res: express.Response, next: express.NextFunction) {
const grantType = req.body.grant_type
try {
const bypassLogin = await buildByPassLogin(req, grantType)