Files
marquiz-metrics/app/api/v1/schemas/auth.py

10 lines
399 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, Field
class TokenRequest(BaseModel):
"""Схема запроса для получения токена."""
code: str = Field(..., description="Временный код авторизации от Яндекса")
class TokenResponse(BaseModel):
"""Схема ответа с токеном доступа."""
access_token: str
token_type: str