From f17ac53d3e1f05cd93a8f53f1e8c607114e29aa4 Mon Sep 17 00:00:00 2001 From: dudi levy <4785835+dudil@users.noreply.github.com> Date: Wed, 29 Nov 2023 16:21:24 +0200 Subject: [PATCH] Convert session_id to string in session_manager.py. Fix lint error in python 3.9 --- fastapi_msal/core/session_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})