We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a8a395 commit c32db92Copy full SHA for c32db92
splitio/models/token.py
@@ -64,11 +64,9 @@ def decode_token(raw_token):
64
return False, None, None
65
token = raw_token['token']
66
push_enabled = raw_token['pushEnabled']
67
- if not push_enabled or len(token.strip()) == 0:
68
- return False, None, None
+ token_parts = token.strip().split('.')
69
70
- token_parts = token.split('.')
71
- if len(token_parts) < 2:
+ if not push_enabled or len(token_parts) < 2:
72
73
74
to_decode = token_parts[1]
0 commit comments