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.

112 lines 2.79 kB
import { z } from "zod"; export declare const callbackQueryValidation: z.ZodObject<{ k1: z.ZodString; key: z.ZodString; sig: z.ZodString; }, "strip", z.ZodTypeAny, { k1: string; sig: string; key: string; }, { k1: string; sig: string; key: string; }>; export declare const callbackBodyValidation: z.ZodEffects<z.ZodObject<{ event: z.ZodObject<{ kind: z.ZodNumber; created_at: z.ZodNumber; tags: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">; content: z.ZodString; pubkey: z.ZodString; id: z.ZodString; sig: z.ZodString; }, "strip", z.ZodTypeAny, { pubkey: string; sig: string; kind: number; created_at: number; tags: string[][]; content: string; id: string; }, { pubkey: string; sig: string; kind: number; created_at: number; tags: string[][]; content: string; id: string; }>; }, "strip", z.ZodTypeAny, { event: { pubkey: string; sig: string; kind: number; created_at: number; tags: string[][]; content: string; id: string; }; }, { event: { pubkey: string; sig: string; kind: number; created_at: number; tags: string[][]; content: string; id: string; }; }>, { event: { pubkey: string; sig: string; kind: number; created_at: number; tags: string[][]; content: string; id: string; }; }, unknown>; export declare const createValidation: z.ZodObject<{ state: z.ZodString; k1: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { state: string; k1?: string | undefined; }, { state: string; k1?: string | undefined; }>; export declare const signInValidation: z.ZodObject<{ state: z.ZodString; redirect_uri: z.ZodString; }, "strip", z.ZodTypeAny, { state: string; redirect_uri: string; }, { state: string; redirect_uri: string; }>; export declare const pollValidation: z.ZodObject<{ k1: z.ZodString; }, "strict", z.ZodTypeAny, { k1: string; }, { k1: string; }>; export declare const tokenValidation: z.ZodObject<{ grant_type: z.ZodUnion<[z.ZodLiteral<"authorization_code">, z.ZodLiteral<"refresh_token">]>; code: z.ZodOptional<z.ZodString>; refresh_token: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { grant_type: "authorization_code" | "refresh_token"; code?: string | undefined; refresh_token?: string | undefined; }, { grant_type: "authorization_code" | "refresh_token"; code?: string | undefined; refresh_token?: string | undefined; }>; //# sourceMappingURL=api.d.ts.map