Skip to content

Commit 068be26

Browse files
committed
fixed minor comments
1 parent 20c0865 commit 068be26

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

apps/auth-proxy/routes/r/[...auth].ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@ export default eventHandler(async (event) =>
1313
clientId: process.env.AUTH_GOOGLE_ID,
1414
clientSecret: process.env.AUTH_GOOGLE_SECRET,
1515
}),
16-
],
17-
callbacks: {
18-
signIn({ user }) {
19-
const email = user.email;
20-
21-
if (!email?.endsWith("@husky.neu.edu")) {
22-
return false;
23-
}
24-
return true;
25-
},
26-
},
16+
]
2717
}),
2818
);
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import React from "react";
2-
31
export default function ErrorPage() {
42
return (
5-
<div className="flex min-h-screen items-center justify-center">
3+
<div className="flex h-[85vh] flex-col">
4+
<div className="flex h-full items-center justify-center">
65
<div className="text-center">
7-
<h1 className="mb-4 text-2xl font-bold text-gray-900">
6+
<h1 className="text-2xl font-bold text-gray-900">
87
Authentication Error
98
</h1>
10-
<p className="mb-4 text-gray-600">You must log in with husky.neu.edu</p>
11-
<p className="mb-4 text-gray-600">
9+
<p className="text-gray-600">You must log in with husky.neu.edu</p>
10+
<p className="text-gray-600">
1211
Click the sign in button to try again
1312
</p>
1413
</div>
1514
</div>
15+
</div>
1616
);
1717
}

packages/auth/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"extends": "@cooper/tsconfig/base.json",
33
"compilerOptions": {
4-
"jsx": "react",
54
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
65
},
7-
"include": ["src", "*.ts", "../../apps/web/error-page.tsx"],
6+
"include": ["src", "*.ts",],
87
"exclude": ["node_modules"]
98
}

0 commit comments

Comments
 (0)