UNPKG

next-auth-pubkey

Version:

A light-weight Lightning and Nostr auth provider for your Next.js app that's entirely self-hosted and plugs seamlessly into the next-auth framework.

21 lines 1.29 kB
import { Config, StorageData } from "../config/types.js"; import { HandlerArguments, HandlerReturn } from "../utils/handlers.js"; type Check = { state: "success" | "failed"; method: "get" | "set" | "update" | "delete" | null; message: string; }; export declare function testField(received: StorageData | null | undefined, expected: StorageData | null | undefined, field: "k1" | "state" | "pubkey" | "sig" | "success"): Check; export declare function testSet(setMethod: () => Promise<undefined>, config: Config): Promise<Check[]>; export declare function testGet(expectedSession: { k1: string; state: string; }, getMethod: () => Promise<StorageData | null | undefined>, config: Config): Promise<Check[]>; export declare function testUpdate(expectedSession: { k1: string; state: string; }, updateMethod: (override?: string) => Promise<undefined>, getMethod: () => Promise<StorageData | null | undefined>, config: Config): Promise<Check[]>; export declare function testDelete(deleteMethod: () => Promise<undefined>, getMethod: () => Promise<StorageData | null | undefined>, config: Config): Promise<Check[]>; export default function handler({ query, cookies, url, config, }: HandlerArguments): Promise<HandlerReturn>; export {}; //# sourceMappingURL=diagnostics.d.ts.map