add: GitHub authentication
This commit is contained in:
9
src/auth.config.ts
Normal file
9
src/auth.config.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { NextAuthConfig } from "next-auth";
|
||||
import github from "next-auth/providers/github";
|
||||
|
||||
export const authConfig: NextAuthConfig = {
|
||||
providers: [github],
|
||||
callbacks: {
|
||||
authorized: ({ auth }) => !!auth,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user