gapi.auth2.getAuthInstance().currentUser.get().grant() 的结果是什么

问题描述

知道在 Google gapi javascript 库中调用方法 gapi.auth2.getAuthInstance().currentUser.get().grant() 的结果是什么吗?

我正在尝试使用 Google gapi.auth2 库来实现增量授权,但对 GoogleUser.grant(options) 实际返回的方法感到困惑。

文档引用了 signIn 方法,该方法返回 Promise<GoogleUser>https://developers.google.com/identity/sign-in/web/reference#googleusergrantoptions

尝试过测试,但结果似乎大不相同...

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)