From b1d7badef4a57efd3c3ea56534d0e4f3e4867949 Mon Sep 17 00:00:00 2001 From: eggy Date: Thu, 2 May 2024 03:06:53 -0400 Subject: [PATCH] fix: change b64-encoded token to unicode string --- cps/services/SyncToken.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/services/SyncToken.py b/cps/services/SyncToken.py index bf31a7bc..22e3a81a 100644 --- a/cps/services/SyncToken.py +++ b/cps/services/SyncToken.py @@ -30,7 +30,7 @@ log = logger.create() def b64encode_json(json_data): - return b64encode(json.dumps(json_data).encode()) + return b64encode(json.dumps(json_data).encode()).decode("utf-8") # Python3 has a timestamp() method we could be calling, however it's not avaiable in python2.