diff --git a/fastapi_msal/core/session_manager.py b/fastapi_msal/core/session_manager.py index d2da66a..65c0474 100644 --- a/fastapi_msal/core/session_manager.py +++ b/fastapi_msal/core/session_manager.py @@ -47,7 +47,7 @@ def __init__(self, request: Request): @property def session_id(self) -> OptStr: - return self.request.session.get(SESSION_KEY, None) + return str(self.request.session.get(SESSION_KEY, None)) def init_session(self, session_id: str) -> None: self.request.session.update({SESSION_KEY: session_id})