ooiservices/app/main/authentication.py
def logged_in():
    '''
    Checks the TOKEN not the user identity to see if it's current and valid.
    '''
    auth = request.authorization
    if not auth:
        return jsonify(valid=False)
    token, password = auth.username, auth.password
    if token and not password:
        user = User.verify_auth_token(token)
        return jsonify(valid=(user is not None))
    return jsonify(valid=False)

    Checks the TOKEN not the user identity to see if it's current and valid.
    
Checks the TOKEN not the user identity to see if it's current and valid.
Checks the TOKEN not the user identity to see if it ' s current and valid .
def logged_in():
    auth = request.authorization
    if not auth:
        return jsonify(valid=False)
    token, password = auth.username, auth.password
    if token and not password:
        user = User.verify_auth_token(token)
        return jsonify(valid=(user is not None))
    return jsonify(valid=False)
def logged_in ( ) : auth = request . authorization if not auth : return jsonify ( valid = False ) token , password = auth . username , auth . password if token and not password : user = User . verify_auth_token ( token ) return jsonify ( valid = ( user is not None ) ) return jsonify ( valid = False )
Checks the TOKEN not the user identity to see if it's current and valid.
Checks the TOKEN not the user identity to see if it ' s current and valid .
'''
    Checks the TOKEN not the user identity to see if it's current and valid.
    '''