feat(auth): add AuthService with JWT, lockout and tests
This commit is contained in:
14
server/__init__.py
Normal file
14
server/__init__.py
Normal 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)
|
||||
Reference in New Issue
Block a user