Files
ocpm/rate-limit.md
2022-11-04 01:31:58 -04:00

1.2 KiB

About GitHub Rate Limits

GitHub API limits users to 60 requests per hour if not logged in, and since we send 1 request to check each kext's update, the 60 requests limit could be easily exceeded. You can create an API token with your GitHub account to increase the rate limit to 5000 reqeusts per hour.

  1. Log in to GitHub on this page.
  2. Click on the profile picture on the upper-right corner, click Settings
    Screenshot
  3. In the left sidebar, click Developer Settings at the bottom
  4. In the left sidebar, under Personal Access Tokens, click Fine-grained tokens
  5. Click Generate New Token on the right
  6. Enter OCPM for Token Name
  7. Set an expiration day
  8. Scroll down and click Generate Token
  9. Copy the token

After Generating a Token

After generating a token, you can login to GitHub on OCPM by typing:

ocpm --login <your_token_here>

image