Skip to content

Commit

Permalink
as Adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Jan 12, 2024
1 parent 5c6b342 commit 2ec5791
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cli/template/extras/src/server/auth-app/with-drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
type DefaultSession,
type NextAuthOptions,
} from "next-auth";
import { type Adapter } from "next-auth/adapters";
import DiscordProvider from "next-auth/providers/discord";

import { env } from "~/env";
Expand Down Expand Up @@ -46,7 +47,7 @@ export const authOptions: NextAuthOptions = {
},
}),
},
adapter: DrizzleAdapter(db, mysqlTable),
adapter: DrizzleAdapter(db, mysqlTable) as Adapter,
providers: [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
Expand Down
3 changes: 2 additions & 1 deletion cli/template/extras/src/server/auth-pages/with-drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
type DefaultSession,
type NextAuthOptions,
} from "next-auth";
import { type Adapter } from "next-auth/adapters";
import DiscordProvider from "next-auth/providers/discord";

import { env } from "~/env";
Expand Down Expand Up @@ -47,7 +48,7 @@ export const authOptions: NextAuthOptions = {
},
}),
},
adapter: DrizzleAdapter(db, mysqlTable),
adapter: DrizzleAdapter(db, mysqlTable) as Adapter,
providers: [
DiscordProvider({
clientId: env.DISCORD_CLIENT_ID,
Expand Down

0 comments on commit 2ec5791

Please sign in to comment.