GoogleClientPlugin icon indicating copy to clipboard operation
GoogleClientPlugin copied to clipboard

CrossGoogleClient.Current.IdToken is null

Open huynhger opened this issue 4 years ago • 4 comments

The CrossGoogleClient.Current.IdToken is null. I followed the documentation and initialized the plugin GoogleClientManager.Initialize(this, "client_id", "client_id"); with client id but nothing change. Thank you very much

huynhger avatar Mar 25 '21 18:03 huynhger

any update on this, im also getting null IdToken

joshua-mng avatar May 12 '21 13:05 joshua-mng

Set your appropriate client ID in Android project's MainActivity class while initializing: GoogleClientManager.Initialize(this, null, "{your client ID}"); You can get it from google-services.json file. IdToken should be available afterwards.

kristofmaar avatar Jul 07 '21 12:07 kristofmaar

@huynhger @joshua-mng you guys have to get the client_id from your project on google cloud, create a credential key and put it to that method. 2 parameters with the same key

thanoue avatar Jul 10 '21 07:07 thanoue

@thanoue >

I did this and I get a "INVALID_IDP_RESPONSE : Unable to parse Google id_token" Any ideas would be greatly appreciated

fundasappteam avatar Feb 21 '23 08:02 fundasappteam