Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
Getting Started
Providers
Salesforce

Salesforce Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_SALESFORCE_ID
AUTH_SALESFORCE_SECRET

Configuration

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