async function login(req, res, next) {
    const user = await gladys.user.login(req.body.email, req.body.password);
    const scope = req.body.scope || ['dashboard:write', 'dashboard:read'];
    const session = await gladys.session.create(
      user.id,
      scope,
      LOGIN_SESSION_VALIDITY_IN_SECONDS,
      req.headers['user-agent'],
    );
    const response = { ...user, ...session };
    res.json(response);
  }
@api {post} /api/v1/login Login
@apiName LoginUser
@apiGroup User
@apiParam {String} email Email of the user
@apiParam {String} password Password of the user
@apiSuccess {String} refresh_token the refresh token
@apiSuccess {String} access_token the access token