claude drizzle integration

This commit is contained in:
2025-08-19 01:48:23 -04:00
parent 9942a11c0d
commit 92535f7e54
10 changed files with 135 additions and 91 deletions

View File

@@ -1,6 +1,8 @@
import NextAuth, { NextAuthConfig, NextAuthResult } from "next-auth";
import Authentik from "next-auth/providers/authentik";
import type { Provider } from "next-auth/providers";
import { DrizzleAdapter } from "@auth/drizzle-adapter";
import { db } from "@/db/index";
const providers: Provider[] = [
Authentik({
@@ -20,6 +22,7 @@ export const providerMap = providers.map((provider) => {
});
const config = {
adapter: DrizzleAdapter(db),
providers,
pages: {
signIn: "/signin",