title: my homepage wont render using my google oauth
body: <p>This is the error that I get:
  &quot;You have created a new client application that use…i/web/guides/gis-migration) for more information.&quot;</p>
  <p>here are my codes on server, the statement inside console.log doesnt even show:</p>
  <pre><code>
  static async googleLogin(req, res, next) {
    try {
      console.log(&quot;masuk google login server&quot;)
      const { id_token } = req.body
      const client = new OAuth2Client(process.env.GOOGLE_CLIENT_ID)
      const ticket = await client.verifyIdToken({
          idToken: id_token,
          audience: process.env.GOOGLE_CLIENT_ID
      });
  
      const payload = ticket.getPayload()
      const email = payload.email
      let password = email.toString().split('@')
      password = password[0]
      let user = await User.findOne({ where: { email } })
      if (!user) {
          let newUser = { email, password }
          let createUser = await User.create(newUser)
          const payload = {
              id: createUser.id,
              email: createUser.email
          }
          const access_token = generateToken(payload)
          return res.status(201).json({ access_token })
      } else {
          const payload = {
              id: user.id,
              email: user.email
          }
          const access_token = generateToken(payload)
          return res.status(200).json({ access_token })
      }
  
    } catch (err) {
        console.log(err)
        return next(err)
    }
  }
  
  </code></pre>
  <p>the console.log in my client also doesnt show</p>
  <pre><code>
  function onSignIn(googleUser) {
      console.log(&quot;masuk client oauth&quot;)
      $.ajax({
          method: &quot;POST&quot;,
          url: `${baseUrl}/users/google-login`,
          data: {
              id_token: googleUser.getAuthResponse().id_token
          }
      })
          .done((response) =&gt; {
              console.log(response, &quot;client response&quot;)
              localStorage.setItem(&quot;access_token&quot;, response.access_token)
              checkLocalStorage();
          })
          .fail((err) =&gt; {
              console.log(err, &quot;error client&quot;);
          })
          .always(() =&gt; {
              authentication()
          })
  }
  
  </code></pre>
  <p>i tried deleting cache and run my app again, recreate a new project on google api (which genereated new ID). they didnt work</p>