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

346
Views
La extensión de Chrome obtiene el token de autenticación sin usar la aplicación de Chrome

Estoy tratando de obtener un token de autenticación usando:

 chrome.identity.getAuthToken({ interactive: false }, function (token) { console.log('token', token); });

token no está definido y recibo el error:

Runtime.lastError no verificado: la solicitud de OAuth2 falló: el servicio respondió con el error: 'ID de cliente incorrecto

mi manifest json's oauth2 se ve así:

 "version": "1.0", "manifest_version": 3, "background": { "service_worker": "background.js" }, "oauth2": { "client_id": "<my_client_id>.apps.googleusercontent.com", "scopes": [ "profile email", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.file" ] },

Agregué mi identificación de cliente siguiendo las instrucciones aquí:

https://developer.chrome.com/docs/extensions/mv3/tut_oauth/#oauth_client

Veo que las instrucciones dicen:

En la página Crear ID de cliente, seleccione Aplicación de Chrome

Sin embargo, las aplicaciones de Chrome están en desuso. Entonces, tengo dos preguntas, ¿por qué mi identificación de cliente es incorrecta? ¿Hay alguna manera de autenticar a un usuario sin usar una aplicación de Chrome, ya que las aplicaciones de Chrome están obsoletas?

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!