# next-auth-adapter-airtable

> Airtable adapter for next-auth

Latest version **0.0.10** (published 2022-05-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install next-auth-adapter-airtable
pnpm add next-auth-adapter-airtable
yarn add next-auth-adapter-airtable
bun add next-auth-adapter-airtable
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2022-05-14 |
| First published | 2022-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 66.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Kai Yen |
| Maintainers | kyen99 |
| Keywords | next-auth, airtable |

## Links

- npm: https://www.npmjs.com/package/next-auth-adapter-airtable
- Repository: https://github.com/kyen99/next-auth-adapter-airtable
- Issues: https://github.com/kyen99/next-auth-adapter-airtable/issues
- npm.io page: https://npm.io/package/next-auth-adapter-airtable

## Dependencies (3)

- [airtable](https://npm.io/package/airtable.md) ^0.11.3
- [encoding](https://npm.io/package/encoding.md) ^0.1.13
- [next-auth](https://npm.io/package/next-auth.md) ^4.3.4

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 0.0.10 (latest) — 2022-05-14
- 0.0.9 — 2022-05-11
- 0.0.8 — 2022-05-10
- 0.0.7 — 2022-05-10
- 0.0.6 — 2022-05-10
- 0.0.5 — 2022-05-09
- 0.0.4 — 2022-05-09
- 0.0.3 — 2022-05-09

## README

# Airtable Next Auth Adapter

This is a [next-auth](https://next-auth.js.org/) database adapter for [Airtable](https://airtable.com)

## Status

This is experimental. Use at your own risk. I've tested this with Google and Email providers. If you run across a configuration that doesn't work, open an issue [here](https://github.com/kyen99/next-auth-adapter-airtable/issues) with your `[...nextauth].js` file.

There is test coverage using the standard basic-tests.ts set used for the adapters in the official repo.

## Airtable schema

Clone this base in Airtable: https://airtable.com/shr16Xd8glUk90c4P

## ENV vars

Add your apiKey and the baseId of the cloned base to .env:

```
AIRTABLE_API_KEY=keyXXXXXXXXXXXXXX // From your account page
AIRTABLE_BASE_ID=appXXXXXXXXXXXXXX // e.g. https://airtable.com/baseId/something/somethingelse/
```

## Usage

```
import NextAuth from 'next-auth'
import AirtableAdapter from 'next-auth-adapter-airtable'

export default NextAuth({
  providers: [
    ...providers
  ],
  adapter: AirtableAdapter({
    apiKey: process.env.AIRTABLE_API_KEY,
    baseId: process.env.AIRTABLE_BASE_ID,
  }),
})

```

---
_Source: https://npm.io/package/next-auth-adapter-airtable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
