From 068be268ce31ab73fa9ce4cf4219ebe4ef2c64cb Mon Sep 17 00:00:00 2001 From: gpalmer27 Date: Thu, 30 Jan 2025 18:24:25 -0500 Subject: [PATCH] fixed minor comments --- apps/auth-proxy/routes/r/[...auth].ts | 12 +----------- .../src/app/(pages)/(dashboard)/redirection/page.tsx | 12 ++++++------ packages/auth/tsconfig.json | 3 +-- 3 files changed, 8 insertions(+), 19 deletions(-) diff --git a/apps/auth-proxy/routes/r/[...auth].ts b/apps/auth-proxy/routes/r/[...auth].ts index 202cfff..7609667 100644 --- a/apps/auth-proxy/routes/r/[...auth].ts +++ b/apps/auth-proxy/routes/r/[...auth].ts @@ -13,16 +13,6 @@ export default eventHandler(async (event) => clientId: process.env.AUTH_GOOGLE_ID, clientSecret: process.env.AUTH_GOOGLE_SECRET, }), - ], - callbacks: { - signIn({ user }) { - const email = user.email; - - if (!email?.endsWith("@husky.neu.edu")) { - return false; - } - return true; - }, - }, + ] }), ); diff --git a/apps/web/src/app/(pages)/(dashboard)/redirection/page.tsx b/apps/web/src/app/(pages)/(dashboard)/redirection/page.tsx index f2d04f6..93f4af1 100644 --- a/apps/web/src/app/(pages)/(dashboard)/redirection/page.tsx +++ b/apps/web/src/app/(pages)/(dashboard)/redirection/page.tsx @@ -1,17 +1,17 @@ -import React from "react"; - export default function ErrorPage() { return ( -
+
+
-

+

Authentication Error

-

You must log in with husky.neu.edu

-

+

You must log in with husky.neu.edu

+

Click the sign in button to try again

+
); } diff --git a/packages/auth/tsconfig.json b/packages/auth/tsconfig.json index cbdebcf..ba38e2a 100644 --- a/packages/auth/tsconfig.json +++ b/packages/auth/tsconfig.json @@ -1,9 +1,8 @@ { "extends": "@cooper/tsconfig/base.json", "compilerOptions": { - "jsx": "react", "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" }, - "include": ["src", "*.ts", "../../apps/web/error-page.tsx"], + "include": ["src", "*.ts",], "exclude": ["node_modules"] }