Shipped
HomeContacts
  • Get started
  • 📚Tutorials
    • Make a waiting list
    • Launch a pre-sale
    • Build a SaaS
    • Create your store on Lemon Squeezy
  • đźź©Features
    • AI Services
    • Affiliate Program
    • Analytics
    • Authentication
      • MailChimp
      • Loops
      • AWS SES
      • SendGrid
      • Supabase Auth
        • Supabase Authentication Flow
        • Supabase Magic Link
        • Supabase Email & Password
        • Supabase Login with Google
    • API endpoints
      • 🛡️Authenticated API
    • Blog
    • Customer support
    • Chrome Extension
    • Dark mode
    • Database
      • Update your database
      • MongoDB
    • Emails
    • Error pages
    • Icons
    • Onboarding
    • Payments
      • Lemon Squeezy
        • Subscriptions
        • One-time purchase
        • Test mode
      • Stripe
    • Private pages
    • SEO
    • shadcn/ui
    • Supabase
    • Workspace / Organizations
  • 📦Components
    • AccountMenu
    • CtaBox
    • DarkModeSwitch
    • Explainer video
    • FAQ
    • Features
    • Footer
    • Header
    • Hero
    • Lifetime
    • Pricing
    • Sales Notification
    • Secondary Sidebar Pages
    • Sidebar
    • Tabs
    • Testimonials
    • Waitlist
    • WebAppPage
  • 🚀Deployment
  • âś…Other
    • Configuration
    • Changelog widget
    • Favicon
    • Google Fonts
    • Sitemap
    • Theme
  • Updates
  • GitHub Repository
  • Support
Powered by GitBook
On this page

Was this helpful?

  1. Features
  2. Authentication

AWS SES

Use AWS SES to send magic link emails

First, you’ll need to create your SMTP credentials for AWS Simple Email Service (SES):

  • On the old SES console, there’s an SMTP Settings link on the left side.

  • On the new SES console, the link is under Account dashboard on the left sidebar.

Create new SMTP credentials, and copy them. The final string will look like this:

smtp://username:password@email-smtp.us-east-1.amazonaws.com:587

There are three variables that you should replace in this string:

  • username and password, which are the SMTP credentials you created earlier.

  • us-east-1 replace it with the region that you’re sending emails from

Set this value into the .env file

AWS_SES_SMTP="smtp://username:password@email-smtp.us-east-1.amazonaws.com:587"

Open src/config/auth.ts and set:

EmailProvider({
    server: process.env.AWS_SES_SMTP || ""
    from: process.env.EMAIL_FROM || "",
    // maxAge: 24 * 60 * 60, // How long email links are valid for (default 24h)
}),
PreviousLoopsNextSendGrid

Last updated 1 year ago

Was this helpful?

đźź©