Beispiel #1
0
def verify_token(token):
    g.current_user = User.check_api_token(token) if token else None
    return g.current_user is not None