Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
API reference
mailgun

providers/mailgun

Built-in Mailgun integration.

default()

default(config): EmailConfig

Add Mailgun login to your page.

Setup

Configuration

import { Auth } from "@auth/core"
import Mailgun from "@auth/core/providers/mailgun"
 
const request = new Request(origin)
const response = await Auth(request, {
  providers: [
    Mailgun({ from: MAILGUN_DOMAIN }),
  ],
})

Resources

Disclaimer If you think you found a bug in the default configuration, you can open an issue.

Auth.js strictly adheres to the specification and it cannot take responsibility for any deviation from the spec by the provider. You can open an issue, but if the problem is non-compliance with the spec, we might not pursue a resolution. You can ask for more help in Discussions.

Parameters

ParameterType
configEmailUserConfig

Returns

EmailConfig

Auth.js © Balázs Orbán and Team - 2024