import Apple from "@auth/core/providers/apple";
import Google from "@auth/core/providers/google";
import Resend from "@auth/core/providers/resend";
import { Anonymous } from "@convex-dev/auth/providers/Anonymous";
import { convexAuth } from "@convex-dev/auth/server";
import { env } from "./env";
import { ResendOTP } from "./lib/auth/otp/email/resend_otp";
export const { auth, signIn, signOut, store } = convexAuth({
providers: [
Apple,
Google,
Anonymous,
Resend({
apiKey: env.RESEND_API_KEY,
from: env.RESEND_FROM_ADDRESS,
}),
ResendOTP,
],
});
import Apple from "@auth/core/providers/apple";
import Google from "@auth/core/providers/google";
import Resend from "@auth/core/providers/resend";
import { Anonymous } from "@convex-dev/auth/providers/Anonymous";
import { convexAuth } from "@convex-dev/auth/server";
import { env } from "./env";
import { ResendOTP } from "./lib/auth/otp/email/resend_otp";
export const { auth, signIn, signOut, store } = convexAuth({
providers: [
Apple,
Google,
Anonymous,
Resend({
apiKey: env.RESEND_API_KEY,
from: env.RESEND_FROM_ADDRESS,
}),
ResendOTP,
],
});