alabuga/backend/app/schemas/auth.py
2025-09-27 21:07:59 +03:00

24 lines
463 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""Схемы авторизации."""
from pydantic import BaseModel, EmailStr
class Token(BaseModel):
"""Ответ с токеном."""
access_token: str
token_type: str = "bearer"
class EmailRequest(BaseModel):
"""Запрос на повторную отправку письма."""
email: EmailStr
class EmailConfirm(BaseModel):
"""Подтверждение e-mail по коду."""
email: EmailStr
token: str