Source code for app.schemas.token from typing import Optional from pydantic import BaseModel [docs]class Token(BaseModel): access_token: str token_type: str [docs]class TokenPayload(BaseModel): sub: Optional[int] = None Last update: Mar 10, 2024