lucia-auth-adapter-surrealdb
Version:
SurrealDB adapter for Lucia
20 lines (19 loc) • 444 B
TypeScript
import type { Adapter } from "lucia-auth";
import Surreal from "surrealdb.js";
type ConnectionOptions = ConstructorParameters<typeof Surreal>[1];
type Opts = {
targets: {
user?: string;
session?: string;
key?: string;
};
};
type Args = {
surreal: Surreal;
opts?: Opts;
} | {
uri: string;
opts?: Opts & ConnectionOptions;
};
declare const adapter: (args: Args) => Adapter;
export default adapter;