link-stack/apps/leafcutter/app/_lib/auth.ts

18 lines
518 B
TypeScript
Raw Normal View History

2023-07-18 12:26:57 +00:00
import type { NextAuthOptions } from "next-auth";
2023-02-13 13:46:56 +00:00
import Google from "next-auth/providers/google";
import Apple from "next-auth/providers/apple";
2023-07-18 12:26:57 +00:00
export const authOptions: NextAuthOptions = {
2023-02-13 13:46:56 +00:00
providers: [
Google({
2023-05-24 20:27:57 +00:00
clientId: process.env.GOOGLE_CLIENT_ID ?? "",
clientSecret: process.env.GOOGLE_CLIENT_SECRET ?? "",
2023-02-13 13:46:56 +00:00
}),
Apple({
2023-05-24 20:27:57 +00:00
clientId: process.env.APPLE_CLIENT_ID ?? "",
clientSecret: process.env.APPLE_CLIENT_SECRET ?? "",
2023-02-13 13:46:56 +00:00
}),
],
secret: process.env.NEXTAUTH_SECRET,
2023-07-18 12:26:57 +00:00
};