@frappe.whitelist(allow_guest=True)
def get_service_provider_client_id(provider):
    k = f"client_id_{re.sub('[^0-9a-zA-Z]+', '_', provider.lower())}"
    client_id = frappe.cache().get_value(k)
    if client_id:
        return client_id
    client_id = get_client_id_from_mediator(provider)
    frappe.cache().set_value(k, client_id, expires_in_sec=18000)
    return client_id
@frappe.whitelist(allow_guest=True)
def get_service_provider_client_id(provider):
    k = f"client_id_{re.sub('[^0-9a-zA-Z]+', '_', provider.lower())}"
    client_id = frappe.cache().get_value(k)
    if client_id:
        return client_id
    client_id = get_client_id_from_mediator(provider)
    frappe.cache().set_value(k, client_id, expires_in_sec=18000)
    return client_id