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

LinkedIn Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_LINKEDIN_ID
AUTH_LINKEDIN_SECRET

Configuration

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