@nucypher/taco
Version:
### [`nucypher/taco-web`](../../README.md)
19 lines • 975 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.jwtConditionSchema = exports.JWTConditionType = exports.JWT_PARAM_DEFAULT = void 0;
const zod_1 = require("zod");
const common_1 = require("./common");
const context_1 = require("./context");
exports.JWT_PARAM_DEFAULT = ':jwtToken';
exports.JWTConditionType = 'jwt';
exports.jwtConditionSchema = common_1.baseConditionSchema.extend({
conditionType: zod_1.z.literal(exports.JWTConditionType).default(exports.JWTConditionType),
publicKey: zod_1.z.string(),
expectedIssuer: zod_1.z.string().optional(),
// TODO see https://github.com/nucypher/taco-web/pull/604#discussion_r1901746814
// subject: contextParamSchema.optional(),
// expirationWindow: z.number().int().nonnegative().optional(),
// issuedWindow: z.number().int().nonnegative().optional(),
jwtToken: context_1.contextParamSchema.default(exports.JWT_PARAM_DEFAULT),
});
//# sourceMappingURL=jwt.js.map