Some checks reported errors
continuous-integration/drone/push Build was killed
16 lines
390 B
TypeScript
16 lines
390 B
TypeScript
import NextAuth, { AuthOptions } from "next-auth";
|
|
import GithubProvider from "next-auth/providers/github";
|
|
|
|
export const authOptions: AuthOptions = {
|
|
providers: [
|
|
GithubProvider({
|
|
clientId: process.env.GITHUB_CLIENT_ID!,
|
|
clientSecret: process.env.GITHUB_CLIENT_SECRET!,
|
|
}),
|
|
],
|
|
};
|
|
|
|
const handler = NextAuth(authOptions);
|
|
|
|
export { handler as GET, handler as POST };
|