From 674649ca7f8a867280a71c811640d00918eff932 Mon Sep 17 00:00:00 2001 From: Manatsawin Hanmongkolchai Date: Sun, 9 Oct 2022 14:57:02 +0700 Subject: [PATCH] Added checks to JWTDecode operation --- src/core/operations/JWTDecode.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/operations/JWTDecode.mjs b/src/core/operations/JWTDecode.mjs index 07f19477..b6356b5a 100644 --- a/src/core/operations/JWTDecode.mjs +++ b/src/core/operations/JWTDecode.mjs @@ -26,6 +26,13 @@ class JWTDecode extends Operation { this.inputType = "string"; this.outputType = "JSON"; this.args = []; + this.checks = [ + { + pattern: "^ey([A-Za-z0-9_-]+)\\.ey([A-Za-z0-9_-]+)\\.([A-Za-z0-9_-]+)$", + flags: "", + args: [] + }, + ]; } /**