

@auth.verify_token
def verify_token(token):
    g.user = None
    try:
        data = jwt.loads(data)
    except:
        return False
    if ('username' in data):
        g.user = data['username']
        return True
    return False

dataset/ETHPy150Open miguelgrinberg/Flask-HTTPAuth/examples/token_auth.py verify_token/VarMisuse@31/36 `token`->`data`