Skip to content

Fix(provider): Mailgun region selection #13027

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 15, 2025

Conversation

benhovinga
Copy link
Contributor

☕️ Reasoning

This non-breaking PR adds the region option to the Mailgun provider. This option selects either the US or EU Mailgun API server. The region option is optional and if omitted will default to the US server.

Example provider config

export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [
    Mailgun({
      region: "EU",  //  Optional
      apiKey: process.env.AUTH_MAILGUN_KEY,
      from: "no-reply@company.com"
    }),
  ],
})

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

Fixes: #12925

📌 Resources

Copy link

vercel bot commented Jun 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 15, 2025 7:12am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Jun 15, 2025 7:12am

Copy link

vercel bot commented Jun 3, 2025

@benhovinga is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codecov bot commented Jun 3, 2025

Codecov Report

Attention: Patch coverage is 0% with 22 lines in your changes missing coverage. Please review.

Project coverage is 39.40%. Comparing base (07b7d93) to head (751af33).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/core/src/providers/mailgun.ts 0.00% 22 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13027      +/-   ##
==========================================
- Coverage   39.43%   39.40%   -0.03%     
==========================================
  Files         200      200              
  Lines       31756    31775      +19     
  Branches     1399     1400       +1     
==========================================
  Hits        12522    12522              
- Misses      19234    19253      +19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ThangHuuVu ThangHuuVu merged commit e0168ed into nextauthjs:main Jun 15, 2025
11 of 15 checks passed
@benhovinga benhovinga deleted the mailgun-region branch June 15, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Refers to `@auth/core` providers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mailgun Provider needs option for EU server (domain is different)
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy