mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
* chore(deps): upgrade `typescript` * chore(ts): don't exclude test files in tsconfig * test: expect error when overriding `NODE_ENV` * chore: remove unused import * format * chore: use pnpm@7 in action * chore: fix eslint * chore: remove pnpm from engines * chore: fix configs/builds * fix: make eslint works * Update pnpm-lock.yaml * fix: build failure * fix: add react to paths * ignore upstash for now * add eslintignore, add a bunch of tsconfig.eslint.json * ignore mikro orm for now * Delete tsconfig.eslint.json * Update package.json * Update pnpm-lock.yaml * move eslint back to package.json * move eslintrc.js out Co-authored-by: Thang Vu <thvu@hey.com> Co-authored-by: Thang Vu <thang.vu@binance.com>
Fauna Adapter - NextAuth.js
Open Source. Full Stack. Own Your Data.
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
- Install
faunadb,next-authand@next-auth/fauna-adapter
npm install faunadb next-auth @next-auth/fauna-adapter@next
- Add this adapter to your
pages/api/[...nextauth].jsnext-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
