From f58333db6475401aa9af138aed9cce9c9a3f797f Mon Sep 17 00:00:00 2001
From: Yan Grange <12-grange@users.noreply.git.astron.nl>
Date: Tue, 15 Nov 2022 16:19:36 +0000
Subject: [PATCH] Fix small typo in the client code

---
 esap_client/shopping_client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/esap_client/shopping_client.py b/esap_client/shopping_client.py
index 62a09b6..b633749 100644
--- a/esap_client/shopping_client.py
+++ b/esap_client/shopping_client.py
@@ -17,7 +17,7 @@ logger = logging.getLogger(__name__)
 def is_valid_token(token: str) -> bool:
     """Check that the given token has not expired"""
     try:
-        selfdata = token.split(".")[1]
+        data = token.split(".")[1]
         padded = data + "=" * divmod(len(data), 4)[1]
         payload = json.loads(base64.urlsafe_b64decode(padded))
         return payload["exp"] > int(time.time()) + 10
-- 
GitLab