0.1.0-dev.11edfad47c9b57689e91da70535f4a1c7b5dc38b • Published 3 years ago

@antribute/backend-auth-nextauth v0.1.0-dev.11edfad47c9b57689e91da70535f4a1c7b5dc38b

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Antribute Backend NextAuth Provider

Adds NextAuth.js Support to the Antribute Backend

Installation

pnpm i @antribute/backend-auth-nextauth -D && pnpm i next-auth

If your application's ORM is prisma, also install the following peer dependency

pnpm i @next-auth/prisma-adapter

Usage

  1. Create a new file called .antributerc.ts
  2. Add the following
    import { defineConfig } from '@antribute/backend-core';
    export default defineConfig({ auth: { platform: '@antribute/backend-auth-nextauth' } });
  3. Run the Antribute CLI to auto-generate required files