fooder-api/fooder/model/token.py

16 lines
258 B
Python
Raw Normal View History

2023-04-01 16:19:12 +02:00
from pydantic import BaseModel
class Token(BaseModel):
access_token: str
2023-04-02 14:38:22 +02:00
refresh_token: str
token_type: str = "bearer"
2023-04-01 16:19:12 +02:00
class TokenData(BaseModel):
username: str | None = None
2023-04-02 14:38:22 +02:00
class RefreshTokenPayload(BaseModel):
refresh_token: str