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

Box Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_BOX_CLIENT_ID
AUTH_BOX_CLIENT_SECRET

Configuration

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