Commit ae85d41 Oleg Smirnov
committed
1 parent 3052da2 commit ae85d41 Copy full SHA for ae85d41
File tree 2 files changed +3
-2
lines changed
vk-sdk-core/src/main/java/com/vk/api/sdk/auth
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
ext. sdkVersions = [
2
2
code : ' 10' ,
3
- name : ' 2.0.0 ' ,
3
+ name : ' 2.0.1 ' ,
4
4
5
5
minSdk : 16 ,
6
6
targetSdk : 26 ,
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ internal class VKAuthManager {
99
99
else -> return null
100
100
}
101
101
102
- return if (tokenParams != null ) VKAuthResult (VKAccessToken (tokenParams)) else null
102
+ return if (tokenParams != null && tokenParams[ VK_AUTH_ERROR ] == null ) VKAuthResult (VKAccessToken (tokenParams)) else null
103
103
}
104
104
105
105
@@ -123,6 +123,7 @@ internal class VKAuthManager {
123
123
private const val VK_APP_PACKAGE_ID = " com.vkontakte.android"
124
124
private const val VK_APP_AUTH_ACTION = " com.vkontakte.android.action.SDK_AUTH"
125
125
const val VK_EXTRA_TOKEN_DATA = " extra-token-data"
126
+ const val VK_AUTH_ERROR = " error"
126
127
127
128
private const val PREFERENCE_NAME = " com.vkontakte.android_pref_name"
128
129
You can’t perform that action at this time.
0 commit comments