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

[VwG] Add "Refresh" button to sample app to refresh tokens. #453

Closed brnnmrls closed 3 months ago

brnnmrls commented 3 months ago

The following changes add a "Refresh" button to the Verification view of the Days Until Birthday sample app. Clicking this button will trigger -[GIDVerifiedAccountDetailResult refreshTokensWithCompletion:] and refresh the access token. If the refresh request returns a token response, then the result object properties are updated with the new strings. If the refresh request returns an error, then the result object properties remain the same.

Additionally, this PR creates getters for result object properties and updates the initializer.