Flow
To set up SDK Yandex ID authorization in your service, follow these steps:
-
Register your app in Yandex OAuth.
Under Platforms, select iOS app and specify your service's parameters:
-
iOS Appid. The exact ID of the iOS app, such as
A1B2C3D4E5.com.domain.application
. It consists of a Prefix and a Bundle ID. Learn more about iOS app IDs in the Apple documentation. -
iOS AppStore URL. A link to the app in App Store.
To configure SDK Yandex ID, you'll need the Client ID parameter of the app.
-
-
Install the YandexLoginSDK library and modify the config files.
-
Configure your service for using tokens.
-
Get user information.
Note
SDK Yandex ID for iOS lets you save tokens to device storage. When called, SDK Yandex ID checks for saved tokens and only sends an authorization request if no tokens are found.