Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Aug 19, 2024
1 parent dc2d42a commit 14da95d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ async def callback(code: str, request: Request) -> Redirect:
group_id = user["user_group"]

# litestar type this as dict[str, Any], but it maybe Empty
if request.session is not Empty: # type: ignore
back_to = request.session.get("backTo", "/")
else:
if not request.session:
back_to = "/"
else:
back_to = request.session.get("backTo", "/")

request.set_session(
{
Expand Down

0 comments on commit 14da95d

Please sign in to comment.