logout_user(request) was not working in the face of login_user(..., remember=True). I was able to trace it to a simple typo in logout_user. This PR adds a failing test and a fix that addresses the bug.
Note: I've tested against Starlette 0.24.0 on python 3.11, which was the version current back in February at the last release of Starlette-Login. (There are some other, seemingly-unrelated test failures in test_decorator.py against 0.24.0) There are quite a few test failures against the latest Starlette (currently 0.31.1).
logout_user(request)
was not working in the face oflogin_user(..., remember=True)
. I was able to trace it to a simple typo inlogout_user
. This PR adds a failing test and a fix that addresses the bug.Note: I've tested against Starlette 0.24.0 on python 3.11, which was the version current back in February at the last release of Starlette-Login. (There are some other, seemingly-unrelated test failures in
test_decorator.py
against 0.24.0) There are quite a few test failures against the latest Starlette (currently 0.31.1).