link-stack/apps/leafcutter/pages/api/auth/[...nextauth].ts

18 lines
483 B
TypeScript
Raw Normal View History

2023-02-13 13:46:56 +00:00
import NextAuth from "next-auth";
import Google from "next-auth/providers/google";
import Apple from "next-auth/providers/apple";
export default NextAuth({
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,
});