We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dd9b19 commit b08bd4aCopy full SHA for b08bd4a
src/core/Gist.ts
@@ -31,18 +31,19 @@ export class Gist
31
{
32
this._proxy = proxy;
33
34
- const options: Record<string, any> = { timeout: 8000 };
+ const options: Record<string, any> = { request: { timeout: 8000 } };
35
if (proxy)
36
37
- options["agent"] = new HttpsProxyAgent(proxy);
+ options.request["agent"] = new HttpsProxyAgent(proxy);
38
}
39
- this._api = new Github(options);
40
41
this._token = token;
42
- if (token)
+ if (token != null)
43
44
- this._api.authenticate({ token, type: "oauth" });
+ options["auth"] = `token ${token}`;
45
+
46
+ this._api = new Github(options);
47
48
49
/**
0 commit comments