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

200
Views
¿Cómo verificar el token de acceso y actualización de Passportjs Google Oauth2?

Al intentar verificar el token de acceso y actualizar el token del pasaporte de Google Oauth2. me sale este error

 import { OAuth2Client } from "google-auth-library"; const client = new OAuth2Client(OAUTHCLIENTID); const verify = async () => { try { const ticket = await client.verifyIdToken({ idToken: accessToken, audience: OAUTHCLIENTID, }); const payload = ticket.getPayload(); const userid = payload["sub"]; } catch (error) { console.log(error); } };

Error: Wrong number of segments in token: ya29.B0ARrdaM-cx6tOHQiDplJxqWiaJtz1F0F6KOuwXL_R_SNdhsFS7m3mieUOP3hEYiCfU4N9-C42SmQkjmcFDN8FEbFNsh9oXVKpH6z1lAImMXsMv6ib2ziZMNIP_aowNC28t6lUb8qqj9XNcNr4tVboNtPSR_TywwNnWUtBVEFTQVRBU0ZRRl91NjFWcWRlTmhHUVk5dUdSbmFRTjNIbnlhdw0232 at OAuth2Client.verifySignedJwtWithCertsAsync

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!