util/requests.py
def check_auth():
    """
    Check cached authentication token is valid, fetch new if not
    :return: Token str
    """
    token = util.utils.get_token()
    if not token:
        token = auth()
    if not token:
        raise ValueError('Bad API key! Check it in .env')
    else:
        return token

    Check cached authentication token is valid, fetch new if not
    :return: Token str
    
Check cached authentication token is valid, fetch new if not
Check cached authentication token is valid fetch new if not
def check_auth():
    token = util.utils.get_token()
    if not token:
        token = auth()
    if not token:
        raise ValueError('Bad API key! Check it in .env')
    else:
        return token
def check_auth ( ) : token = util . utils . get_token ( ) if not token : token = auth ( ) if not token : raise ValueError ( 'Bad API key! Check it in .env' ) else : return token
Check cached authentication token is valid, fetch new if not
Check cached authentication token is valid fetch new if not
"""
    Check cached authentication token is valid, fetch new if not
    :return: Token str
    """
None