@auth/edgedb-adapter
Official Edge DB adapter for Auth.js / NextAuth.js.
Installation
- npm
- Yarn
- pnpm
npm install edgedb @auth/edgedb-adapter
npm install @edgedb/generate --save-dev
yarn add edgedb @auth/edgedb-adapter
yarn add @edgedb/generate --dev
pnpm add edgedb @auth/edgedb-adapter
pnpm add @edgedb/generate --save-dev
EdgeDBAdapter()
EdgeDBAdapter(
client
):Adapter
To use this Adapter, you need to install edgedb
, @edgedb/generate
, and the separate @auth/edgedb-adapter
package:
- npm
- Yarn
- pnpm
npm install edgedb @auth/edgedb-adapter
npm install @edgedb/generate --save-dev
yarn add edgedb @auth/edgedb-adapter
yarn add @edgedb/generate --dev
pnpm add edgedb @auth/edgedb-adapter
pnpm add @edgedb/generate --save-dev
Installation
First, ensure you have the EdgeDB CLI installed.
Follow the instructions below, or read the EdgeDB quickstart to install the EdgeDB CLI and initialize a project
Linux or macOS
curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh
Windows
iwr https://ps1.edgedb.com -useb | iex
Check that the CLI is available with the edgedb --version
command. If you get a Command not found
error, you may need to open a new terminal window before the edgedb
command is available.
Once the CLI is installed, initialize a project from the application’s root directory. You’ll be presented with a series of prompts.
edgedb project init
This process will spin up an EdgeDB instance and “link” it with your current directory. As long as you’re inside that directory, CLI commands and client libraries will be able to connect to the linked instance automatically, without additional configuration.