A simple adapter package to help you connect to Pocketbase from your Lucia project.
Step 1:
npm i @shamscorner/lucia-pocketbase
Step 2:
Import the adapter in your project.
import { PocketbaseAdapter } from '@shamscorner/lucia-pocketbase';
const client = new PocketBase('http://127.0.0.1:8090');
const adapter = new PocketbaseAdapter(client, {
adminUsername: admin.username, // check pocketbase admin username
adminPassword: admin.password // check pocketbase admin password
});
Step 3:
Follow the official guide to setup your Lucia project.
MIT