feat(auth): add AuthService with JWT, lockout and tests

This commit is contained in:
2025-10-13 00:03:02 +02:00
parent 92217301b5
commit aec6357dcb
5 changed files with 291 additions and 14 deletions

14
server/__init__.py Normal file
View File

@@ -0,0 +1,14 @@
"""Package shim: expose `server` package from `src/server`.
This file inserts the actual `src/server` directory into this package's
`__path__` so imports like `import server.models.auth` will resolve to
the code under `src/server` during tests.
"""
import os
_HERE = os.path.dirname(__file__)
_SRC_SERVER = os.path.normpath(os.path.join(_HERE, "..", "src", "server"))
# Prepend the real src/server directory to the package __path__ so
# normal imports resolve to the source tree.
__path__.insert(0, _SRC_SERVER)