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

Create button on Verification View to fetch age verification signal. #461

Closed brnnmrls closed 1 month ago

brnnmrls commented 1 month ago

The following creates a button that when tapped will start the flow to fetch the age verification signal from the URL. This will use [VerificationLoader fetchAgeVerificationSignal:] in #460 to start the request. The ageVerificationView will utilize this verification signal to determine what the app will show next:

  1. If the verification signal is "AGE_OVER_18_STANDARD", then the app will present a sheet informing the user their age over 18 is verified.
  2. If the verification signal is anything else or does not exist, then the app will present an alert informing the user that their age is not verified over 18 and more information of what's stored in the age verification signal (i.e. "AGE_PENDING").

Video demonstration of success and fail runs: recordings

brnnmrls commented 1 month ago

Can you attach a short video showing how this flows looks?

added to description! lmk if this should be more private