UNPKG

@nucypher/taco

Version:

### [`nucypher/taco-web`](../../README.md)

23 lines (22 loc) 770 B
import { z } from 'zod'; export declare const JWT_PARAM_DEFAULT = ":jwtToken"; export declare const JWTConditionType = "jwt"; export declare const jwtConditionSchema: z.ZodObject<z.objectUtil.extendShape<{ conditionType: z.ZodString; }, { conditionType: z.ZodDefault<z.ZodLiteral<"jwt">>; publicKey: z.ZodString; expectedIssuer: z.ZodOptional<z.ZodString>; jwtToken: z.ZodDefault<z.ZodString>; }>, "strip", z.ZodTypeAny, { conditionType: "jwt"; publicKey: string; jwtToken: string; expectedIssuer?: string | undefined; }, { publicKey: string; conditionType?: "jwt" | undefined; expectedIssuer?: string | undefined; jwtToken?: string | undefined; }>; export type JWTConditionProps = z.infer<typeof jwtConditionSchema>;