Skip to content

Commit

Permalink
fixed minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gpalmer27 committed Jan 30, 2025
1 parent 20c0865 commit 068be26
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
12 changes: 1 addition & 11 deletions apps/auth-proxy/routes/r/[...auth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
},
]
}),
);
12 changes: 6 additions & 6 deletions apps/web/src/app/(pages)/(dashboard)/redirection/page.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React from "react";

export default function ErrorPage() {
return (
<div className="flex min-h-screen items-center justify-center">
<div className="flex h-[85vh] flex-col">
<div className="flex h-full items-center justify-center">
<div className="text-center">
<h1 className="mb-4 text-2xl font-bold text-gray-900">
<h1 className="text-2xl font-bold text-gray-900">
Authentication Error
</h1>
<p className="mb-4 text-gray-600">You must log in with husky.neu.edu</p>
<p className="mb-4 text-gray-600">
<p className="text-gray-600">You must log in with husky.neu.edu</p>
<p className="text-gray-600">
Click the sign in button to try again
</p>
</div>
</div>
</div>
);
}
3 changes: 1 addition & 2 deletions packages/auth/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
}

0 comments on commit 068be26

Please sign in to comment.