first commit

This commit is contained in:
Jeannette Chin committed 2026-10-04 14:02:29 +01:00
commit 8863184a41
42 files changed
+3660

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import NextAuth from "next-auth";
import Google from "next-auth/providers/google";
export const { handlers, signIn, signOut, auth } = NextAuth({
providers: [Google],
callbacks: {
authorized: async ({ auth }) => {
// Logged in users are authenticated, otherwise redirect to login page
return !!auth;
}
}
});