diff --git a/lib/Requestable.js b/lib/Requestable.js index bad111ac..10413986 100644 --- a/lib/Requestable.js +++ b/lib/Requestable.js @@ -54,6 +54,7 @@ class Requestable { token: auth.token, username: auth.username, password: auth.password, + otp: auth.otp || null }; this.__AcceptHeader = AcceptHeader || 'v3'; @@ -102,6 +103,10 @@ class Requestable { if (this.__authorizationHeader) { headers.Authorization = this.__authorizationHeader; } + + if (this.__auth.otp) { + headers['X-GitHub-OTP'] = this.__auth.otp; + } return headers; }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: