0.0.10 • Published 2 years ago

next-auth-adapter-airtable v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Airtable Next Auth Adapter

This is a next-auth database adapter for Airtable

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 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,
  }),
})
0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago