fids/gateway/src/api/schemas/auth.py

13 lines
243 B
Python

from datetime import datetime
from typing import Optional
from pydantic import BaseModel, validator
class Token(BaseModel):
access_token: str
refresh_token: str
user_id: int
class RefreshToken(BaseModel):
refresh_token: str