Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /sargsyanhayko_rsha_auth /src /auth_rsha /schemas.py
| from pydantic import BaseModel | |
| from typing import Optional | |
| class Token(BaseModel): | |
| access_token: str | |
| token_type: str = "bearer" | |
| expires_in: int | |
| class TokenPayload(BaseModel): | |
| sub: str | |
| role: Optional[str] = None | |
| class UserInDB(BaseModel): | |
| id: str | |
| username: str | |
| password_hash: str | |
| role: Optional[str] = None | |
| is_active: bool = True | |
Xet Storage Details
- Size:
- 372 Bytes
- Xet hash:
- 3ff24a64c81605c2b89105eca0fc10661e1549b9a343350bd918ad5c60b1b7e7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.