Google drive, Firebase different client ids for same iOS app

363 Views Asked by At

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?

1

There are 1 best solutions below

0
oceanic03 On

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:

enter image description here