Skip to content

Instantly share code, notes, and snippets.

@lawrencecchen
lawrencecchen / $.ts
Last active July 10, 2024 07:32
next-auth with remix
// app/routes/api/auth/$.ts
import NextAuth from "~/lib/next-auth/index.server";
export const { action, loader } = NextAuth({
providers: [
GoogleProvider({
clientId: env.GOOGLE_CLIENT_ID,
clientSecret: env.GOOGLE_CLIENT_SECRET,
}),
],