Alt drizzle
This commit is contained in:
parent
030b23985d
commit
17bfd0cac1
10 changed files with 89 additions and 581 deletions
19
auth.ts
19
auth.ts
|
|
@ -2,13 +2,6 @@ import NextAuth from "@auth/nextjs";
|
|||
import GitHub from "@auth/nextjs/providers/github";
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
import {
|
||||
db,
|
||||
users,
|
||||
accounts,
|
||||
sessions,
|
||||
verificationTokens,
|
||||
} from "./lib/db/schema";
|
||||
import { PgAdapter } from "./lib/db";
|
||||
|
||||
export const {
|
||||
|
|
@ -16,12 +9,12 @@ export const {
|
|||
auth,
|
||||
CSRF_experimental,
|
||||
} = NextAuth({
|
||||
adapter: PgAdapter(db, {
|
||||
accounts,
|
||||
users,
|
||||
sessions,
|
||||
verificationTokens,
|
||||
}),
|
||||
// adapter: PgAdapter(db, {
|
||||
// accounts,
|
||||
// users,
|
||||
// sessions,
|
||||
// verificationTokens,
|
||||
// }),
|
||||
// @ts-ignore
|
||||
providers: [GitHub],
|
||||
session: { strategy: "jwt" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue