简体   繁体   English

Gigya Swift SDK:“请求签名无效”

[英]Gigya Swift SDK: “Invalid request signature”

Using the SDK version 1.0.11 I get this error使用 SDK 版本 1.0.11 我收到此错误

LoginSocialInteractor.loginWithSocial error: LoginApiError<GigyaAccountResponse>(error: Gigya.NetworkError.gigyaError(data: Gigya.GigyaResponseModel(statusCode: Gigya.ApiStatusCode.unknown, errorCode: 403003, callId: “32cbfb666d654cf8b8434f852908d1d1”, errorMessage: Optional(“Invalid request signature”), sessionInfo: nil, requestData: Optional(2027 bytes))), interruption: nil), socialProvider: google

This happens after installing a new ipa when the privacy consents where invalidated but not accepted.当隐私同意无效但未被接受时,安装新的 ipa 后会发生这种情况。

We don't understand why this is happening, but I guess that has something to do with some data saved on the UserDefaults or Keychain.我们不明白为什么会发生这种情况,但我想这与保存在 UserDefaults 或 Keychain 上的一些数据有关。 It is happenig only for a social login for now with users already registered.目前仅适用于已注册用户的社交登录。

Someone has the same problem?有人有同样的问题吗?

That's happened because you try to login when the session exists.这是因为您在 session 存在时尝试登录。 Make sure you make a logout before you trying to login again.确保在尝试再次登录之前进行注销。

You can check if session exists by isLoggedIn method, Example:您可以通过isLoggedIn方法检查 session 是否存在,例如:

if(Gigya.sharedInstance().isLoggedIn()) {
   // session is exists.
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM