fooder-api/fooder/model/token.py

15 lines
258 B
Python

from pydantic import BaseModel
class Token(BaseModel):
access_token: str
refresh_token: str
token_type: str = "bearer"
class TokenData(BaseModel):
username: str | None = None
class RefreshTokenPayload(BaseModel):
refresh_token: str