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

OneLogin Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_ONELOGIN_ID
AUTH_ONELOGIN_SECRET

Configuration

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