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
478 stars 194 forks source link

[VwG] Add verification flow example to DaysUntilBirthday Sample App. #452

Closed brnnmrls closed 1 month ago

brnnmrls commented 2 months ago

The following changes add the VwG flow to the DaysUntilBirthday Sample App. Once the user clicks 'Verify My Age' on the UserProfileView and navigates to VerificationView. The verify flow commences and either returns a token response or an error. If there's a returned token response, then the VerificationView prints that it's a verified account along with details of the refresh and access tokens. If an error is returned, then the VerificationView displays "Unverified Account" along with a loading icon.

The refresh feature and exercising the tokens will be sent out in separate PRs.