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

183
Views
"POST/usuario/repos" no es compatible con la autenticación básica de clientId/clientSecret

Estoy tratando de crear un repositorio de Github a través de un paquete Octokit de NPM. Configuré las cosas necesarias de oAuth, pero sigo recibiendo el mismo error:

HttpError: [@octokit/auth-oauth-app] "POST /user/repos" no admite la autenticación básica de clientId/clientSecret.

 import { Injectable } from '@nestjs/common'; import { Octokit } from "@octokit/rest"; import { createOAuthAppAuth } from "@octokit/auth-oauth-app"; @Injectable() export class AppService { private auth() { return createOAuthAppAuth({ clientType: "oauth-app", clientId: "xxxxxxxxxxxxxxx", clientSecret: "xxxxxxxxxxxxxxxxxxxxxxx", }); }; public async create() { const octokit = new Octokit({ authStrategy: createOAuthAppAuth, auth: this.auth() }); return await octokit.rest.repos.createForAuthenticatedUser({ name: `repoName/${new Date().toString()}` }).then(({ data }) => { message: data }); } }

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

¡No puedo agradecerle lo suficiente por tomarse el tiempo de regresar y responder su propia pregunta! Estaba atrapado en el infierno recursivo README revisando todos los repositorios de octokit hasta que encontré tu respuesta 😅

about 4 years ago · Juan Pablo Isaza Report

0

Solo necesitaba agregar un token de acceso personal en lugar de ir a la forma oAuth.

 const octokit = new Octokit({ auth: "mypersonalaccesstoken123", });

about 4 years ago · Juan Pablo Isaza Report
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!