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
455 stars 181 forks source link

Handle authorization response and return result object. #426

Closed brnnmrls closed 4 weeks ago

brnnmrls commented 1 month ago

Once the authorization response is processed, the next step is to handle the response by passing back the necessary tokens to the requesting party. A new type is made to encapsulate the completion of the VwG flow. Items that this result object holds are expirationDate, accessTokenString, refreshTokenString, and verifiedAccountDetails. A new method -[GIDVerifyAccountDetail addCompletionCallback:] will create a result object with these properties filled. This class also holds -[GIDVerifiedAccountDetailResult refreshTokensWithCompletion:] to allow developers refresh tokens themselves.