google / google/GoogleSignIn-iOS

How to add prompt: consent to user auth flow?

未关闭
#112 9 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Objective-C
星标
750
派生
282
平均合并
2 天 15 小时
30 天内合并 PR
9

描述

We need the user to consent on every login attempt and on web you can set prompt = consent. However, I'm having a difficult time trying to achieve this on mobile. Is this implemented and if so, can someone help provide guidance on how to implement this?

![Screen Shot 2022-04-05 at 10 50 59 AM](https://user-images.githubusercontent.com/4956032/161781942-c8e121d5-d6f7-4d50-8cbe-deb5dcaa4aff.png)

Currently, we're doing:

```
private lazy var configuration: GIDConfiguration = {
return GIDConfiguration(clientID: clientID, serverClientID: serverClientId)
}()

GIDSignIn.sharedInstance.signIn(with: configuration,
presenting: rootViewController) { user, error in

}
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。