Skip to content

bhachauk/copilot-auth

Repository files navigation

Copilot Authentication: copilot-auth

PyPI version License Downloads coverage

Prerequisite

  • python>=3.13
  • requests
pip install requests

Installation

pip install copilot-auth

Getting started

Steps to fetch copilot github token :

  • Fetch Github Access token using device flow
  • Fetch Copilot Github token using Github Access token
import copilot_auth as ca

# Custom token handler to process the token
def token_handler(token):
    print(token)

# Fetch the github access token
ca.authenticate_github_access_token([token_handler])

# Fetch the copilot github token using the github access token
ca.authenticate_copilot_token([token_handler])

About

copilot authenticator

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages