mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 09:48:32 +00:00
15 lines
396 B
TypeScript
15 lines
396 B
TypeScript
import NextAuth, { NextAuthOptions } from "next-auth"
|
|
import GitHubProvider from "next-auth/providers/github"
|
|
|
|
const authOptions: NextAuthOptions = {
|
|
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 }
|