diff --git a/.env.example b/.env.example index 72fb2719..d496ba16 100644 --- a/.env.example +++ b/.env.example @@ -24,6 +24,8 @@ SMTP_PORT=25 SMTP_USER= SMTP_PASSWORD= SMTP_FROM=Taxonomy +const POSTMARK_SIGN_IN_TEMPLATE = +const POSTMARK_ACTIVATION_TEMPLATE = # ----------------------------------------------------------------------------- # Subscriptions (Stripe) diff --git a/lib/auth.ts b/lib/auth.ts index 7bea9034..3a079505 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -8,8 +8,8 @@ import { db } from "@/lib/db" const postmarkClient = new Client(process.env.POSTMARK_API_TOKEN) -const POSTMARK_SIGN_IN_TEMPLATE = 29559329 -const POSTMARK_ACTIVATION_TEMPLATE = 29559329 +const POSTMARK_SIGN_IN_TEMPLATE = process.env.POSTMARK_SIGN_IN_TEMPLATE +const POSTMARK_ACTIVATION_TEMPLATE = process.env.POSTMARK_ACTIVATION_TEMPLATE export const authOptions: NextAuthOptions = { // huh any! I know.