fix(fastapi): handle sessions more properly

During our BasicAuthBackend execution, we now delete all
stale sessions before performing any checks. This simplifies
our flow.

Because we have simplified session handling, we are now
required to handle stale sessions in any session-altering
code, like account edit or user login.

Signed-off-by: Kevin Morris <>
1 job for simplify-session in 4 minutes and 34 seconds (queued for 12 seconds)
Status Name Job ID Coverage
failed test #37724


Name Stage Failure
test Test
================== 1 failed, 442 passed in 134.60s (0:02:14) ===================
make: Leaving directory '/builds/kevr/aurweb/test'
make: *** [Makefile:11: pytest] Error 1
Uploading artifacts for failed job
Uploading artifacts...
WARNING: coverage.xml: no matching files
ERROR: No files to upload
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1