diff --git a/packages/taco/src/conditions/schemas/jwt.ts b/packages/taco/src/conditions/schemas/jwt.ts index b37a6f81..9f543735 100644 --- a/packages/taco/src/conditions/schemas/jwt.ts +++ b/packages/taco/src/conditions/schemas/jwt.ts @@ -9,11 +9,11 @@ export const JWTConditionType = 'jwt'; export const jwtConditionSchema = baseConditionSchema.extend({ conditionType: z.literal(JWTConditionType).default(JWTConditionType), - public_key: z.string().optional(), - expected_issuer: z.string().optional(), + publicKey: z.string().optional(), + expectedIssuer: z.string().optional(), subject: contextParamSchema.optional(), - expiration_window: z.number().int().nonnegative().optional(), - issued_window: z.number().int().nonnegative().optional(), + expirationWindow: z.number().int().nonnegative().optional(), + issuedWindow: z.number().int().nonnegative().optional(), jwtToken: contextParamSchema.default(JWT_PARAM_DEFAULT), }); diff --git a/packages/taco/test/test-utils.ts b/packages/taco/test/test-utils.ts index eed391a8..41b22d6a 100644 --- a/packages/taco/test/test-utils.ts +++ b/packages/taco/test/test-utils.ts @@ -251,11 +251,11 @@ export const testJsonApiConditionObj = { export const testJWTConditionObj: JWTConditionProps = { conditionType: JWTConditionType, - public_key: TEST_ECDSA_PUBLIC_KEY, - expected_issuer: '0xacbd', + publicKey: TEST_ECDSA_PUBLIC_KEY, + expectedIssuer: '0xacbd', subject: ':userAddress', - expiration_window: 1800, - issued_window: 86400, + expirationWindow: 1800, + issuedWindow: 86400, jwtToken: JWT_PARAM_DEFAULT, };