diff --git a/tiddl/core/auth/client.py b/tiddl/core/auth/client.py index d85c3c9..78fddf6 100644 --- a/tiddl/core/auth/client.py +++ b/tiddl/core/auth/client.py @@ -1,10 +1,13 @@ import base64 +import logging from os import environ from requests import request from typing import Any, TypeAlias from tiddl.core.auth.exceptions import AuthClientError +log = logging.getLogger("tiddl") + def get_auth_credentials() -> tuple[str, str]: ENV_KEY = "TIDDL_AUTH" @@ -22,6 +25,8 @@ def get_auth_credentials() -> tuple[str, str]: if env_value: client_id, client_secret = env_value.split(";") + log.debug(f"{client_id=}, {bool(env_value)=}") + return client_id, client_secret