Skip to content

shamscorner/lucia-pocketbase

Repository files navigation

lucia-pocketbase

A simple adapter package to help you connect to Pocketbase from your Lucia project.

How to use

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:https://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.

License

MIT