odnoklassniki / ok-android-sdk

Android SDK & samples for native apps integrated with OK.RU
Apache License 2.0
20 stars 28 forks source link

Handle authorization cancelling #14

Closed lukaville closed 7 years ago

lukaville commented 7 years ago

How handle authorization cancel event? OkListener callback allows to handle only onError and onSuccess events. But when user cancels authorization (e.g. taps back button), SDK fires onError callback (with Авторизация была отменена error message).

lintax commented 7 years ago

We have not separated CANCEL and FAIL scenarios since do not think that there is a valuable difference for the requesting application.

However, for now you can fork the SDK, change code executed in back scenario.

We are also accepting patches, so you are free to offer a pull request. However, bear in mind, that since most applications do not need to distinguish cancel and error scenarios, the API changes should not cause any changes for them in their code.