|
|
|
@ -1,10 +1,9 @@
|
|
|
|
|
import NextAuth, { type NextAuthOptions } from 'next-auth';
|
|
|
|
|
import GitHubProvider from 'next-auth/providers/github';
|
|
|
|
|
// Prisma adapter for NextAuth, optional and can be removed
|
|
|
|
|
import { PrismaAdapter } from '@next-auth/prisma-adapter';
|
|
|
|
|
|
|
|
|
|
import { env } from '../../../env/server.mjs';
|
|
|
|
|
import { prisma } from '../../../server/db/client';
|
|
|
|
|
import { env } from '~/env/server.mjs';
|
|
|
|
|
import { prisma } from '~/server/db/client';
|
|
|
|
|
|
|
|
|
|
export const authOptions: NextAuthOptions = {
|
|
|
|
|
// Configure one or more authentication providers
|
|
|
|
|