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

SimpleLogin Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_SIMPLELOGIN_ID
AUTH_SIMPLELOGIN_SECRET

Configuration

@/auth.ts
import NextAuth from "next-auth"
import SimpleLogin from "next-auth/providers/simplelogin"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [SimpleLogin],
})

Notes

Authorized Redirect URIs

The “Authorized redirect URIs” used must include your full domain and end in the callback path. By default, SimpleLogin whitelists all http[s]://localhost:* address to facilitate local development. For example;

  • For production: https://{YOUR_DOMAIN}/api/auth/callback/simplelogin
  • For development: By default localhost is whitelisted.

Authorized Redirect URIs must be HTTPS for security reason (except for localhost).

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