@1auth/store-sqlite

SQLite storage implementation for embedded and local development use.

Install

npm i @1auth/store-sqlite

Usage

import * as store from '@1auth/store-sqlite'

store.default({
  client: sqliteDb
})

Configuration options

OptionTypeDefaultDescription
clientobjectrequiredSQLite client with query method
timeToLiveExpireOffsetnumber864000TTL offset in seconds
timeToLiveKeystring"remove"Column name for TTL

API

Implements the store interface using parameterized SQL queries with ? placeholders.