### User Authentication Flow with Yandex ID Source: https://yandex.ru/dev/id/doc/en/index This section outlines the process of authenticating users on your application using their Yandex account and the OAuth 2.0 protocol. ```APIDOC ## User Authentication Flow with Yandex ID ### Description This flow describes how a user can log in to your application using their Yandex account. It involves redirecting the user to Yandex OAuth for authorization and then using the obtained OAuth token to retrieve user data from the Yandex ID API. ### Method Not applicable (This describes a multi-step process, not a single API call). ### Endpoint Not applicable. ### Parameters Not applicable. ### Request Example Not applicable. ### Response #### Success Response (User Data) - **user_id** (string) - The unique identifier for the user provided by Yandex. - **username** (string) - The user's Yandex username. - **first_name** (string) - The user's first name. - **last_name** (string) - The user's last name. - **gender** (string) - The user's gender. - **avatar_url** (string) - The URL to the user's avatar image. - **email** (string) - The user's email address. - **phone_number** (string) - The user's phone number. - **date_of_birth** (string) - The user's date of birth. #### Response Example ```json { "user_id": "1234567890", "username": "example_user", "first_name": "John", "last_name": "Doe", "gender": "male", "avatar_url": "https://avatars.yandex.net/get-yapic/12345/xxxxx-isom", "email": "john.doe@example.com", "phone_number": "+1234567890", "date_of_birth": "1990-01-01" } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.