feat(auth): Add endpoint to get user info by token
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user