Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

376
Views
Why decodeJwtResponse is not defined at Nn.handleCredentialResponse [as callback] in php project?
<body>
   <script src="https://accounts.google.com/gsi/client" async defer></script>
   <div id="g_id_onload"
     data-client_id="790854323959-v2lniefhl7ripoijm0ooetu9ari91g3q.apps.googleusercontent.com"
     data-callback="handleCredentialResponse">
   </div>
   <div class="g_id_signin" data-type="standard"></div>
  
   <script>
      function handleCredentialResponse(response) {
          // decodeJwtResponse() is a custom function defined by you
         // to decode the credential response.
         const responsePayload = decodeJwtResponse(response.credential);
         console.log("ID: " + responsePayload.sub);
         console.log('Full Name: ' + responsePayload.name);
         console.log('Given Name: ' + responsePayload.given_name);
         console.log('Family Name: ' + responsePayload.family_name);
         console.log("Image URL: " + responsePayload.picture);
         console.log("Email: " + responsePayload.email);
      }
   </script>
</body>

Note: I want to integrate google login in php project using javascript. But I am getting error like- decodeJwtResponse is not defined at Nn.handleCredentialResponse [as callback]. Please help me, I want to get profile details. please provide me all the details regarding my query.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!