From bd886ba317568351254bac5e9265deadd219f7d4 Mon Sep 17 00:00:00 2001 From: Safwan Rahman Date: Wed, 6 Nov 2019 05:52:48 +0600 Subject: [PATCH] Change token key from token to access_token --- pusher_chatkit/pusher_chatkit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pusher_chatkit/pusher_chatkit.py b/pusher_chatkit/pusher_chatkit.py index e6a94a0..beaaeee 100644 --- a/pusher_chatkit/pusher_chatkit.py +++ b/pusher_chatkit/pusher_chatkit.py @@ -56,7 +56,7 @@ def generate_token(self, user_id=None, su=None): token = jwt.encode(claims, split_key[1]) - return {"token": token.decode("utf-8"), "expires_in": 24 * 60 * 60} + return {"access_token": token.decode("utf-8"), "expires_in": 24 * 60 * 60} def authenticate_user(self, user_id): """