Added comments
This commit is contained in:
@@ -17,7 +17,9 @@ def verify_token(token):
|
||||
if token is None:
|
||||
return False
|
||||
|
||||
if ':' in token: # Bot token
|
||||
# We decided to append the user id to the bearer token using ":" as separator to select an specific user
|
||||
# To validate the token we can remove the user id since we only validate the token and not the user id
|
||||
if ':' in token:
|
||||
token = token.split(":")[0]
|
||||
|
||||
try:
|
||||
|
Reference in New Issue
Block a user