在谷歌标识工具包处理错误codeS [英] Handling error codes in Google Identity Toolkit

查看:143
本文介绍了在谷歌标识工具包处理错误codeS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用谷歌标识工具包登录到应用我的工作。问题是,当我得到一个错误(INVALID_IDP_RESPONSE,某些错误codeS没有解释等),面包一个错误code出现。我试图用一个自定义用户界面管理器,但后来我不得不处理所有的屏幕,不能使用默认的。我是pretty高兴与处理错误codeS身边的一切。
所以,问题是,我怎么能真正处理所有的错误codeS,因为我不回调,让他们注册?敬酒也是问题,我想摆脱它,但我想我必须使用自定义UI经理,正如我前面提到的。

I am using Google Identity Toolkit for login into app I am working on. The problem is, when I get an error (INVALID_IDP_RESPONSE, some error codes without explanations and so on), the Toast with an error code appears. I tried to use a custom UI Manager but then I have to handle all the screens and cannot use the default ones. I am pretty happy with everything beside handling error codes. So, the question is, how could I actually handle all of the error codes as I don't get them in sign in callbacks? Toast is also problem and I want to get rid of it, but I think I have to use custom UI manager, as I mentioned earlier.

感谢

推荐答案

是的,在这个版本中,你需要使用自定义的UI管理器,以避免吐司。但是,如果你不断地看到INVALID_IDP_RESPONSE错误,很可能有你的应用程序,你的谷歌开发者控制台项目之间的一些配置不匹配。

Yes, in this version you need to use the custom UI manager to avoid the Toast. However, if you constantly see the INVALID_IDP_RESPONSE error, most likely there are some configuration mismatch between your app and your Google Developers Console project.

这篇关于在谷歌标识工具包处理错误codeS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆