-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauth.config.ts
32 lines (29 loc) · 936 Bytes
/
auth.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { NextAuthConfig } from "next-auth";
import Resend from "next-auth/providers/resend";
import GoogleProvider from "next-auth/providers/google";
import FacebookProvider from "next-auth/providers/facebook"
import AppleProvider from "next-auth/providers/apple"
import { env } from "@/env.mjs";
import { sendVerificationRequest } from "@/lib/email";
import email from "next-auth/providers/email";
export default {
providers: [
GoogleProvider({
clientId: env.GOOGLE_CLIENT_ID,
clientSecret: env.GOOGLE_CLIENT_SECRET,
}),
FacebookProvider({
clientId: env.FACEBOOK_CLIENT_ID,
clientSecret: env.FACEBOOK_CLIENT_SECRET,
}),
AppleProvider({
clientId: env.APPLE_CLIENT_ID,
clientSecret: env.APPLE_CLIENT_SECRET || '',
}),
Resend({
apiKey: env.RESEND_API_KEY,
from: env.EMAIL_FROM,
// sendVerificationRequest,
}),
]
} satisfies NextAuthConfig;