X Tutup
Skip to content

Latest commit

 

History

History

README.md

Basic Example

This basic example demonstrates how to use the payload-authjs plugin.

Configuration

  • The Auth.js configuration is located in src/auth.config.ts and the NextAuth instance is created in src/auth.ts.
  • In the Payload CMS configuration (src/payload.config.ts), we added the payload-authjs plugin.
  • The middleware uses the authConfig from src/auth.config.ts to be edge-compatible.

Setup

  1. Rename the .env.example file to .env and update the values with your secrets.
  2. Install dependencies: pnpm install
  3. Start the development server: pnpm run dev
X Tutup