first commit
This commit is contained in:
commit
8863184a41
42 files changed
+3660
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user