We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b741e9 + a113005 commit 74c707fCopy full SHA for 74c707f
mcpgateway/utils/services_auth.py
@@ -43,7 +43,7 @@ def encode_auth(auth_value: dict) -> str:
43
Returns:
44
str: A base64-url-safe encrypted string representing the dictionary, or None if input is None.
45
"""
46
- if auth_value is None:
+ if not auth_value:
47
return None
48
plaintext = json.dumps(auth_value)
49
key = get_key()
@@ -65,7 +65,7 @@ def decode_auth(encoded_value: str) -> dict:
65
66
dict: The decrypted authentication dictionary, or empty dict if input is None.
67
68
- if encoded_value is None:
+ if not encoded_value:
69
return {}
70
71
aesgcm = AESGCM(key)
0 commit comments