0.1.0-dev.03a85f44875cc2268b504dba024aa82fb2e1f8f0 • Published 2 years ago
@antribute/backend-auth-nextauth v0.1.0-dev.03a85f44875cc2268b504dba024aa82fb2e1f8f0
Antribute Backend NextAuth Provider
Adds NextAuth.js Support to the Antribute Backend
Installation
pnpm i @antribute/backend-auth-nextauth -D next-auth
If your application's ORM is prisma
, also install the following peer dependency
pnpm i @next-auth/prisma-adapter
Usage
- Create a new file called
.antributerc.ts
- Add the following
import { defineConfig } from '@antribute/backend-core'; export default defineConfig({ auth: { platform: '@antribute/backend-auth-nextauth' } });
- Run the Antribute CLI to auto-generate required files