Google auth not working in production

I dont understand why it works fine on simulator both on mac and also inside the expo app on my phone… but after deploying it to production it throws this error.

expo version: 21

Currently, this one specific to ios.

Heres my code snippet,

  try {
    const result = await Expo.Google.logInAsync({
      androidClientId: '60changed649315-9rbv8vmv2vvftetfbvlrbufcps1fajqf.apps.googleusercontent.com',
      iosClientId: '775323973076-sb1iooupun09jun6s66CHANGEdvvbm5tr.apps.googleusercontent.com',
      scopes: ['profile', 'email'],
    });

    if (result.type === 'success') {

=============================
do i need to add these lines in the app.json ?

“config”: {
“googleSignIn”: {
“apiKey”: “AIzaSyBrUCmrE1soRpQ1S47KYhJkZiqhirusH1o”,
“certificateHash”: “1746BECB2497593B3296903145793BC0BE8C426B”
},

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.