def check_auth()

in aa-integration-backend/ui-connector/auth.py [0:0]


def check_auth(token):
    if (config.AUTH_OPTION == 'SalesforceLWC'):
        return auth_options.check_salesforce_lwc_token(token)
    elif (config.AUTH_OPTION == 'Salesforce'):
        return auth_options.check_salesforce_token(token)
    elif (config.AUTH_OPTION == 'GenesysCloud'):
        return auth_options.check_genesyscloud_token(token)
    elif (config.AUTH_OPTION == 'Twilio'):
        return auth_options.check_twilio_token(token)
    elif (config.AUTH_OPTION == 'Skip'):
        return True
    # Customize your authentication method here.
    # elif (config.AUTH_OPTION == 'Your Auth Option'):
    #     return auth_options.check_my_token(token)
    return False