feat(auth): Add endpoint to get user info by token
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-08-24 22:19:33 +01:00
parent 4fda827f1c
commit 8047844ad4
2 changed files with 37 additions and 1 deletions

View File

@@ -7,4 +7,11 @@ class TokenRequest(BaseModel):
class TokenResponse(BaseModel):
"""Схема ответа с токеном доступа."""
access_token: str
token_type: str
token_type: str
class UserInfoResponse(BaseModel):
"""Схема ответа с информацией о пользователе Яндекса."""
id: str
login: str
display_name: str
default_email: str