Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

Update ibm_auth.py

Edwin Josecc59cf02e240
diff --git a/src/auth/ibm_auth.py b/src/auth/ibm_auth.py
index f99daca4f..e61f1f2aa 100644
--- a/src/auth/ibm_auth.py
+++ b/src/auth/ibm_auth.py
@@ -26,7 +26,7 @@ def decode_ibm_jwt(token: str) -> dict | None:
"""
try:
return jwt.decode(token, options={"verify_signature": False})
- except jwt.DecodeError as exc:
+ except jwt.InvalidTokenError as exc:
logger.warning("IBM JWT decode failed", error=str(exc))
return None