Skip to content

Commit 3225a05

Browse files
committed
feat(auth): export new auth functions from middleware package
Part of #12
1 parent d643c67 commit 3225a05

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

backend/middleware/__init__.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
"""Authentication middleware package"""
2-
from .auth import get_current_user, get_optional_user
2+
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+
)
311

4-
__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

Comments
 (0)