Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
API reference
@auth/xata-adapter

@auth/xata-adapter

Official Xata adapter for Auth.js / NextAuth.js.

Installation

  1. Install Auth.js and the Xata adapter
npm install @auth/xata-adapter
  1. Install the Xata CLI globally if you don’t already have it
npm install -g @xata.io/cli
  1. Login
xata auth login

XataAdapter()

XataAdapter(client): Adapter

Parameters

ParameterType
clientXataClient

Returns

Adapter

Auth.js © Balázs Orbán and Team - 2024