import { NextApiRequest, NextApiResponse } from "next/types"; import { OAuthConfig } from "next-auth/providers/oauth"; import { UserConfig } from "./config/index.js"; import { NextRequest } from "next/server"; export interface PubKeyAuthProfile extends Record { id: string; image: string | null; name: string | null; iat: number; iss: string; aud: string; exp: number; sub: string; } /** * Generate a provider and handler to setup Lightning auth. * * @param {Object} userConfig - config options, see the package README for details * * @returns {Object} * @returns {String} provider - a provider that can be added to the `next-auth` config's providerArray * @returns {String} handler - an API handler to be exported in the pages/api/pubkey/[...pubkey] folder */ export default function NextAuthPubkey(userConfig: UserConfig): { lightningProvider: OAuthConfig; nostrProvider: OAuthConfig; handler: (req: NextApiRequest, res: NextApiResponse) => Promise>; GET: (req: NextRequest) => Promise; POST: (req: NextRequest) => Promise; }; //# sourceMappingURL=index.d.ts.map