google / google/GoogleSignIn-iOS

How to add prompt: consent to user auth flow?

Aperta
#112 9 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Objective-C
Stelle
750
Fork
282
Merge medio
2g 15h
PR unite (30g)
9

Descrizione

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

}
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.