code: function afterlogin (err, next, req, res) {
      if (err) {
        return seneca.act('role: auth, do: respond', {err: err, action: 'login', req: req}, next)
      }
  
      if (req.user && req.user.ok) {
        // rename passport req.user prop
        req.seneca.user = req.user.user
        req.seneca.login = req.user.login
  
        req.seneca.act("role: 'auth', set: 'token'", {
          tokenkey: options.tokenkey, token: (
          req.seneca.login.id || req.seneca.login.id)
        }, function (err) {
          return seneca.act('role: auth, do: respond', {err: err, action: 'login', req: req}, next)
        })
      }
      else {
        seneca.act('role: auth, do: respond', {err: (err ? err.why : 'Unknown error'), action: 'login', req: req}, next)
      }
    }
docs: LOGIN START