try {
    switch (req.method) {
      case 'POST':
        await sendLoginLink(req, res);
        break;