mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-25 20:34:26 -08:00
18 lines
356 B
Python
18 lines
356 B
Python
from typing import Dict
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
from ....libs.media_api.types import UserProfile
|
|
|
|
AUTH_VERSION = "1.0"
|
|
|
|
|
|
class AuthProfile(BaseModel):
|
|
user_profile: UserProfile
|
|
token: str
|
|
|
|
|
|
class AuthModel(BaseModel):
|
|
version: str = Field(default=AUTH_VERSION)
|
|
profiles: Dict[str, AuthProfile] = Field(default_factory=dict)
|