0.1.0-dev.156f1c33a9e83b82a6a5d973519a05de5a14b4b1 • Published 3 years ago
@antribute/backend-auth-nextauth v0.1.0-dev.156f1c33a9e83b82a6a5d973519a05de5a14b4b1
Antribute Backend NextAuth Provider
Adds NextAuth.js Support to the Antribute Backend
Installation
pnpm i @antribute/backend-auth-nextauth -D && pnpm i next-authIf your application's ORM is prisma, also install the following peer dependency
pnpm i @next-auth/prisma-adapterUsage
- 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