mirror of
https://github.com/oskvr37/tiddl.git
synced 2026-06-13 04:05:08 +03:00
📢 Log client id and if it was loaded from env
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user