There is a workaround for this issue after a recent change in the Google OAuth policy.
After integrating the Google Sign and enabling the Google Drive API, I was able to work with the Google Drive API to get all the drive data. We just need to install the authorizer for GTLServiceDrive, which is obtained after logging in to Google.
service.authorizer = user.authentication.fetcherAuthorizer()
Here are the snippets of Google GIDSignIn code, and then fetching calendar events.
import GoogleAPIClient import GTMOAuth2 import UIKit import GoogleSignIn class ViewController: UIViewController, GIDSignInUIDelegate, GIDSignInDelegate { private let kApiKey = "AIzaXXXXXXXXXXXXXXXXXXXXXXX"
source share