shurcooL / githubv4

Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql).
MIT License
1.1k stars 89 forks source link

Created github client is tied to a single access token #100

Open jamesyli opened 2 years ago

jamesyli commented 2 years ago

Currently if I create a client, the client ties to a token. This isn't ideal for a multi-tenant system where I have to create a new client for each request as the token is gonna be different.

A better way is to reuse the client for different tokens coming from different tenants.