From e988cd95248bc173a37c45a989c699f2678d5a96 Mon Sep 17 00:00:00 2001 From: Arlan Lloyd Date: Mon, 31 Mar 2025 01:15:29 +0000 Subject: [PATCH] add basic assertions for experation & issuedAt --- content/blogs/phantom-token/test.hurl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/blogs/phantom-token/test.hurl b/content/blogs/phantom-token/test.hurl index c5563ad..7445bf4 100644 --- a/content/blogs/phantom-token/test.hurl +++ b/content/blogs/phantom-token/test.hurl @@ -9,4 +9,6 @@ authorization: Bearer {{session_token}} HTTP 200 [Asserts] jsonpath "$['sub']" == "pina" -jsonpath "$['iss']" == "keibi-blog" \ No newline at end of file +jsonpath "$['iss']" == "keibi-blog" +jsonpath "$['exp']" toString toDate "%s" daysAfterNow <= 1 +jsonpath "$['iat']" toString toDate "%s" daysBeforeNow == 0 \ No newline at end of file