def verify_token(token): g.current_user = Usuario.check_token(token) if token else None return g.current_user is not None