(token, expiration=3600)
return user_info
Given a token and expiration (in seconds),
    as long as it has not expired an email will be returned.
Given a token and expiration (in seconds),
    as long as it has not expired an email will be returned.
Given a token and expiration ( in seconds ) as long as it has not expired an email will be returned .
def confirm_token(token, expiration=3600):
    '''
    Given a token and expiration (in seconds),
    as long as it has not expired an email will be returned.
    '''
    serializer = URLSafeTimedSerializer(app.config['SECRET_KEY'])
    try:
        user_info = serializer.loads(
            token,
            salt=app.config['SECURITY_PASSWORD_SALT'],
            max_age=expiration
        )
    except:
        return False
    return user_info
def confirm_token ( token , expiration = 3600 ) : serializer = URLSafeTimedSerializer ( app . config [ 'SECRET_KEY' ] ) try : user_info = serializer . loads ( token , salt = app . config [ 'SECURITY_PASSWORD_SALT' ] , max_age = expiration ) except : return False return user_info