def verify_token(token): if token in TOKENS: g.current_user = token return True return False # ?????????