CapacitorGoogleAuth icon indicating copy to clipboard operation
CapacitorGoogleAuth copied to clipboard

Allow google cloud credentials

Open albert-mllrdev opened this issue 4 years ago • 1 comments

Currently the plugin is dependent on credentials from https://firebase.google.com/ and won't work with just credentials from https://console.cloud.google.com/

On Android, this is due to the googleSignInBuilder having this two methods

.requestIdToken(clientId)
.requestServerAuthCode(clientId, forceCodeForRefreshToken)

While on iOS the googleSignIn property is requiring the GoogleService-Info.plist and retrieving the clientID from that file. And it's also assigning a value to googleSignIn.serverClientID which is not needed when just using the google cloud client id

A simple if statement and a capacitor.config.json option on which credentials to use would solve this

albert-mllrdev avatar Aug 24 '20 08:08 albert-mllrdev

@albert-mllrdev I have the same issue since I use Firebase and separate PeopleAPI Call I need both options as well. Did you find a workaround until this gets fixed ?

bbjoern avatar Sep 03 '20 07:09 bbjoern