Update login.py
fixed incorrect padding issue
@@ -23,7 +23,7 @@ class Login:
if token.startswith('mfa.'):
token = token[4:]
if '.' in token:
- self.userID = base64.b64decode(token.split('.')[0]).decode('utf-8')
+ self.userID = base64.b64decode(token.split('.')[0]+'===').decode('utf-8')
self.editedS = Wrapper.editedReqSession(s, {"remove": ["Authorization", "X-Fingerprint"]})
def getXFingerprint(self, generateIfNone):
