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
506 stars 201 forks source link

Create method to fetch the age verification signal from API. #460

Closed brnnmrls closed 3 months ago

brnnmrls commented 3 months ago

The following creates a method to be called from the sample app to fetch the age verification signal. Upon calling the method this will create a URL session with the retrieved access token. Then, the response will be decoded and retrieve any age verification signal. This verification signal will be used in a following PR to inform the user if their age is verified over 18.