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

Mailru Provider

Resources

Setup

Callback URL

https://example.com/api/auth/callback/mailru

Environment Variables

AUTH_MAILRU_ID
AUTH_MAILRU_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import MailRu from "next-auth/providers/mailru"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [MailRu],
})
Auth.js © Balázs Orbán and Team - 2024