Skip to main content
Home
This package has been archived, and as such it is read-only.

latest
This package works with Node.js, DenoIt is unknown whether this package works with Bun
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
JSR Score
58%
Published
a year ago (1.0.2)

A lucia dapter for the Deno KV database.

Currently no docs but you can view mod.test.ts to see the basics

Caution

.deleteExpiredSessions can be very memory and time instensive. options.experimental.auto_expire is an alternative that tells denoKV to automatically delete your session, but it is not fully on the dot reliable.

const db = Deno.openKv(/*...*/); // or import { openKv } from "@deno/kv"
const luciaKv = luciaKvAdapter(db); // the return type of kv has some extra tools, do not discard
const auth = new Lucia(luciaKv.adapter);

export { db, luciaKv, auth };

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@ts-rex/lucia-denokv

Import symbol

import * as lucia_denokv from "@ts-rex/lucia-denokv";
or

Import directly with a jsr specifier

import * as lucia_denokv from "jsr:@ts-rex/lucia-denokv";

Add Package

pnpm i jsr:@ts-rex/lucia-denokv
or (using pnpm 10.8 or older)
pnpm dlx jsr add @ts-rex/lucia-denokv

Import symbol

import * as lucia_denokv from "@ts-rex/lucia-denokv";

Add Package

yarn add jsr:@ts-rex/lucia-denokv
or (using Yarn 4.8 or older)
yarn dlx jsr add @ts-rex/lucia-denokv

Import symbol

import * as lucia_denokv from "@ts-rex/lucia-denokv";

Add Package

vlt install jsr:@ts-rex/lucia-denokv

Import symbol

import * as lucia_denokv from "@ts-rex/lucia-denokv";

Add Package

npx jsr add @ts-rex/lucia-denokv

Import symbol

import * as lucia_denokv from "@ts-rex/lucia-denokv";

Add Package

bunx jsr add @ts-rex/lucia-denokv

Import symbol

import * as lucia_denokv from "@ts-rex/lucia-denokv";