mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
feat: export auth types and functions from stack_auth package
- Add AuthState, TokenPartialUser, decode_access_token_claims to public API - Add sync_authenticate_request and async_authenticate_request exports - Existing exports unchanged
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
"""Stack Auth Python SDK."""
|
||||
|
||||
from stack_auth._auth import (
|
||||
AuthState,
|
||||
TokenPartialUser,
|
||||
async_authenticate_request,
|
||||
decode_access_token_claims,
|
||||
sync_authenticate_request,
|
||||
)
|
||||
from stack_auth._pagination import PaginatedResult
|
||||
from stack_auth._version import __version__
|
||||
from stack_auth.errors import (
|
||||
@@ -66,6 +73,12 @@ __all__ = [
|
||||
"RateLimitError",
|
||||
"CliError",
|
||||
"AnalyticsError",
|
||||
# Auth
|
||||
"AuthState",
|
||||
"TokenPartialUser",
|
||||
"decode_access_token_claims",
|
||||
"sync_authenticate_request",
|
||||
"async_authenticate_request",
|
||||
# Models
|
||||
"BaseUser",
|
||||
"ServerUser",
|
||||
|
||||
Reference in New Issue
Block a user