Answer the question
In order to leave comments, you need to log in
API OK. Unity SDK. When renewing a token, does a window constantly pop up asking for access to personal data?
Good afternoon,
I use OK Unity SDK 1.0.22 for Android, iOS platforms.
To renew the token, the code is used:
if (OK.IsInitialized)
if (OK.AccessTokenExpiresAt < DateTime.Now)
{
if (OK.IsRefreshTokenValid)
{
OK.RefreshAccessToken(success =>
{
OnOKLoginFinished(success, callback);
});
}
else
{
OK.RefreshOAuth(success =>
{
OnOKLoginFinished(success, callback);
});
}
}
Answer the question
In order to leave comments, you need to log in
Can you still get a long token (LONG_ACCESS_TOKEN) and not deal with all sorts of session expiration and refresh tokens at all?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question