token modify part3
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -42,7 +42,7 @@ class MyJSONWebTokenAuthentication(JSONWebTokenAuthentication): | ... | @@ -42,7 +42,7 @@ class MyJSONWebTokenAuthentication(JSONWebTokenAuthentication): | 
| 42 | if jwt_value is None: | 42 | if jwt_value is None: | 
| 43 | return None | 43 | return None | 
| 44 | 44 | ||
| 45 | jwt_str = str(jwt_value)[-10:] | 45 | jwt_str = str(jwt_value, 'UTF-8')[-10:] | 
| 46 | is_expired = rh.get_token(jwt_str) | 46 | is_expired = rh.get_token(jwt_str) | 
| 47 | if isinstance(is_expired, str): | 47 | if isinstance(is_expired, str): | 
| 48 | rh.set_token(jwt_str) | 48 | rh.set_token(jwt_str) | ... | ... | 
- 
Please register or sign in to post a comment