Files
sentinel/app/schemas/auth.py

14 lines
270 B
Python
Raw Normal View History

from __future__ import annotations
from pydantic import BaseModel, Field
class LoginRequest(BaseModel):
password: str = Field(min_length=1, max_length=256)
class TokenResponse(BaseModel):
access_token: str
token_type: str = "bearer"
expires_in: int