📢 Log client id and if it was loaded from env

This commit is contained in:
Oskar Dudziński
2026-05-02 17:35:52 +02:00
parent c22cb2941d
commit 3cba05910b
+5
View File
@@ -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