First, I integrated Google Drive in my iOS native app and used GTMOAuth2 for authorization login, with a client id.
Then, I am now trying to integrate firebase authentication, and I got a new client id in GoogleService-Info.plist.
When I used firebase authorization and then got the data in google drive, I got an Invalid Credentials error.
How can I use firebase authorization to get the data in google drive? Why does the same APP have two client ids, can I modify the client id in GoogleService-Info.plist?
I have passed through the same. After Enable GglDrive api,In Credential, Don't create new credential you'll find in below list(auto created by google services),You'll find one id with same ClientId & ReturnUrl like in Google.plist. Use to download that file and use. You'll not face this "invalid_client" error further. Check image below I have shown with arrow:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.