Добрый день!
Делаем авторизацию через Одноклассники для iOS. Логин через webview работает нормально, но при попытке пройти авторизацию через установленное приложение одноклассников, приходит ошибка токена (логи ниже). Подскажите, с чем это может быть связано и как это исправить?
Логи:
Requesting access token by code
Odnoklassniki.IOSOdnoklassniki:SSOAuthSuccessIOS(String)
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
OUT ->
https://api.ok.ru/oauth/token.do?grant_type=author...
Odnoklassniki.HTTP.Request:Send(Action`1)
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
IN www <- {"access_token":"tkn1kd5lIw5FJSm3bzDt3eSh3hhTW2EXAXZZBbDxuBYe6scajng8GU5xgLPZbh9FlW3F3","token_type":"session","expires_in":"2592000"}
Odnoklassniki.HTTP.d__0:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
Got response from tokenByCode: {"access_token":"tkn1kd5lIw5FJSm3bzDt3eSh3hhTW2EXAXZZBbDxuBYe6scajng8GU5xgLPZbh9FlW3F3","token_type":"session","expires_in":"2592000"}
Odnoklassniki.IOSOdnoklassniki:m__18(Request)
Odnoklassniki.HTTP.d__0:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
Bad response: access_token or refresh_token is not present
Odnoklassniki.IOSOdnoklassniki:m__18(Request)
Odnoklassniki.HTTP.d__0:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)