Skip to content
Discussion options

You must be logged in to vote

I was using the wrong access token. Instead of using github one, I passed firebase auth token. In addition, the github octokit client was configured incorrectly.

Proper configuration:

import { Octokit } from '@octokit/core';
import { createOAuthAppAuth } from '@octokit/auth-oauth-app';

export const baseOctokit = new Octokit({
  authStrategy: createOAuthAppAuth,
  auth: {
    clientId: config.github.client_id,
    clientSecret: config.github.client_secret,
  },
});

Documentation about this configuration is poor.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@edwardribas
Comment options

Answer selected by oscyp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks
2 participants