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.
9 lines • 495 B
TypeScript
import * as jose from "jose";
import { Config } from "../config/index.js";
export declare function generateIdToken(pubkey: string, name: string | null, image: string | null, config: Config): Promise<string>;
export declare function generateRefreshToken(pubkey: string, config: Config): Promise<string>;
export declare function verifyRefreshToken(refreshToken: string, config: Config): Promise<{
pubkey?: string;
jwt: jose.JWTVerifyResult["payload"];
}>;
//# sourceMappingURL=jwt.d.ts.map