T
T
tresspin2016-09-28 11:54:41
Classmates
tresspin, 2016-09-28 11:54:41

What could be the reason for the error when logging into the game through the OK application for iOS?

Good afternoon!
We do authorization through Odnoklassniki for iOS. Login through the webview works fine, but when you try to login through the installed classmates application, a token error comes up (logs below). Can you tell me what could be causing this and how to fix it?
Logs:
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":"tkn1kd5lIw5FJSm3bzDt3eSh3hhTW2EXAXZZBbDxubytype"Wcajng8GU5xgsession3Fh9"Flses ","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_in0":"2592}
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)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question