From 3aeb5fe4777d251debe48d11c8091e84d9413be8 Mon Sep 17 00:00:00 2001 From: afonin Date: Sun, 17 Apr 2022 10:36:59 +0300 Subject: [PATCH] Update 'apns2/credentials.py' - fix backward compatibility issue --- apns2/credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apns2/credentials.py b/apns2/credentials.py index 659269f..f356f76 100644 --- a/apns2/credentials.py +++ b/apns2/credentials.py @@ -64,7 +64,7 @@ class TokenCredentials(Credentials): } jwt_token = jwt.encode(token_dict, self.__auth_key, algorithm=self.__encryption_algorithm, - headers=headers).decode('ascii') + headers=headers) # Cache JWT token for later use. One JWT token per connection. # https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_token-based_connection_to_apns