@next-auth/fauna-adapter
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published


    

Fauna Adapter - NextAuth.js

Open Source. Full Stack. Own Your Data.

Build Test Bundle Size @next-auth/fauna-adapter Version

Overview

This is the Fauna Adapter for next-auth. This package can only be used in conjunction with the primary next-auth package. It is not a standalone package.

You can find the Fauna schema and seed information in the docs at next-auth.js.org/adapters/fauna.

Getting Started

  1. Install faunadb, next-auth and @next-auth/fauna-adapter
npm install faunadb next-auth @next-auth/fauna-adapter@next
  1. Add this adapter to your pages/api/[...nextauth].js next-auth configuration object.
import NextAuth from "next-auth"
import { Client as FaunaClient } from "faunadb"
import { FaunaAdapter } from "@next-auth/fauna-adapter"

const client = new FaunaClient({
  secret: "secret",
  scheme: "http",
  domain: "localhost",
  port: 8443,
})

// For more information on each option (and a full list of options) go to
// https://next-auth.js.org/configuration/options
export default NextAuth({
  // https://next-auth.js.org/configuration/providers
  providers: [],
  adapter: FaunaAdapter(client)
  ...
})

Contributing

We're open to all community contributions! If you'd like to contribute in any way, please read our Contributing Guide.

License

ISC

/@next-auth/fauna-adapter/

    Package Sidebar

    Install

    npm i @next-auth/fauna-adapter

    Weekly Downloads

    652

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    12.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • thvu
    • ndom91
    • balazsorban
    • iaincollins