feat: add validation for minimum length on various fields and update type definitions
This commit is contained in:
37
backend/typings/fastapi_clerk_auth/__init__.pyi
Normal file
37
backend/typings/fastapi_clerk_auth/__init__.pyi
Normal file
@@ -0,0 +1,37 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
from starlette.requests import Request
|
||||
|
||||
|
||||
@dataclass
|
||||
class ClerkConfig:
|
||||
jwks_url: str
|
||||
verify_iat: bool = ...
|
||||
leeway: float = ...
|
||||
|
||||
|
||||
class HTTPAuthorizationCredentials:
|
||||
scheme: str
|
||||
credentials: str
|
||||
decoded: dict[str, object] | None
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
scheme: str,
|
||||
credentials: str,
|
||||
decoded: dict[str, object] | None = ...,
|
||||
) -> None: ...
|
||||
|
||||
|
||||
class ClerkHTTPBearer:
|
||||
def __init__(
|
||||
self,
|
||||
config: ClerkConfig,
|
||||
auto_error: bool = ...,
|
||||
add_state: bool = ...,
|
||||
) -> None: ...
|
||||
|
||||
async def __call__(self, request: Request) -> HTTPAuthorizationCredentials | None: ...
|
||||
|
||||
Reference in New Issue
Block a user