We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d643c67 commit 3225a05Copy full SHA for 3225a05
1 file changed
backend/middleware/__init__.py
@@ -1,4 +1,18 @@
1
"""Authentication middleware package"""
2
-from .auth import get_current_user, get_optional_user
+from .auth import (
3
+ # New unified auth (recommended)
4
+ AuthContext,
5
+ require_auth,
6
+ public_auth,
7
+ # Legacy (backwards compatibility)
8
+ get_current_user,
9
+ get_optional_user,
10
+)
11
-__all__ = ["get_current_user", "get_optional_user"]
12
+__all__ = [
13
+ "AuthContext",
14
+ "require_auth",
15
+ "public_auth",
16
+ "get_current_user",
17
+ "get_optional_user",
18
+]
0 commit comments