google / GoogleSignIn-iOS

Enables iOS and macOS apps to sign in with Google.
https://developers.google.com/identity/sign-in/ios
Apache License 2.0
472 stars 189 forks source link

Create GIDAccountDetailType enumeration and its mapping. #385

Closed brnnmrls closed 4 months ago

brnnmrls commented 5 months ago

The enumeration GIDAccountDetailType is created and mapped to scope "https://www.googleapis.com/auth/verified.age.over18.standard". GIDVerifiableAccountDetail takes care of three functions:

  1. -[GIDVerifiableAccountDetail initWithAccountDetailType:] Designated initializer of the GIDVerifiableAccountDetail class
  2. +[GIDVerifiableAccountDetail scopeMapping:] Returns a dictionary mapping account detail type to scope.
  3. -[GIDVerifiableAccountDetail scope:] Returns scope of account detail needed to verify.