CapacitorGoogleAuth icon indicating copy to clipboard operation
CapacitorGoogleAuth copied to clipboard

invalid_audience: The audience client and the client need to be in the same project

Open eugenek0110 opened this issue 3 years ago • 3 comments

To Native -> GoogleAuth signIn 5148673 2022-04-10 03:09:17.032506+0300 App[65022:5736328] [] nw_protocol_get_quic_image_block_invoke dlopen libquic failed ERROR MESSAGE: {"message":"invalid_audience: The audience client and the client need to be in the same project.","code":"-61440","errorMessage":"invalid_audience: The audience client and the client need to be in the same project."} ⚡️ [error] - {"message":"invalid_audience: The audience client and the client need to be in the same project.","code":"-61440","errorMessage":"invalid_audience: The audience client and the client need to be in the same project."} ⚡️ [error] - ERROR Error: Uncaught (in promise): Error: invalid_audience: The audience client and the client need to be in the same project. CapacitorException@capacitor://localhost/src_app_auth_login_login_module_ts.js:108:14

Hello Everyone! I've got an issue on ios... Help needed :(

eugenek0110 avatar Apr 10 '22 00:04 eugenek0110

Adding iosClientId, clientId and serverClientId in the Capacitor.config.json file fixed the problem.

"GoogleAuth": { "scopes": [ "profile", "email" ], "serverClientId": "YOUR_API_KEY.apps.googleusercontent.com", "forceCodeForRefreshToken": true, "iosClientId":"IOS_CLIENT_ID", "clientId": "ANDROID_OR_WEB_CLIENT_ID" }

Mbbahar avatar May 10 '22 12:05 Mbbahar