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

Implement methods to create the default options for the verify flow. #387

Closed brnnmrls closed 4 months ago

brnnmrls commented 4 months ago

Modify GIDSignInInternalOptions to include two new methods creating default options for the verification flow. The methods will create default options depending on whether an accountDetailsToVerify array was passed into it. Additionally a new completion block is created, GIDVerifyCompletion, to help fill the completion field with either a GIDVerifiedAccountDetailResult object or an error.

Methods added:

  1. -[GIDSignInInternalOptions defaultOptionsWithConfiguration:presentingViewController:loginHint:addScopesFlow:verifyCompletion:]
  2. -[GIDSignInInternalOptions defaultOptionsWithConfiguration:presentingViewController:loginHint:addScopesFlow:accountDetailsToVerify:verifyCompletion:]