google / google/GoogleSignIn-iOS

How to add prompt: consent to user auth flow?

Open
#112 9 comments 2 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
750
Forks
282
Avg merge
2d 15h
Merged PRs (30d)
9

Description

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

}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.