Skip to content

Commit

Permalink
Convert session_id to string in session_manager.py.
Browse files Browse the repository at this point in the history
Fix lint error in python 3.9
  • Loading branch information
dudil committed Nov 29, 2023
1 parent b078415 commit f17ac53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi_msal/core/session_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit f17ac53

Please sign in to comment.