{"_id":"@octokit/auth-token","_rev":"201099","name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","dist-tags":{"latest":"3.0.3"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"time":{"modified":"2023-03-20T10:39:45.000Z","created":"2019-06-10T03:20:42.458Z","3.0.3":"2023-01-20T23:48:43.215Z","3.0.2":"2022-10-13T05:19:49.704Z","3.0.1":"2022-08-15T13:57:27.387Z","3.0.0":"2022-07-07T21:56:33.022Z","2.5.0":"2021-09-16T17:27:53.834Z","2.4.5":"2021-01-25T17:46:23.344Z","2.4.4":"2020-12-01T06:16:11.757Z","2.4.3":"2020-11-01T18:01:42.626Z","2.4.2":"2020-06-10T17:48:24.576Z","2.4.1":"2020-05-21T06:57:59.526Z","2.4.0":"2019-11-03T05:08:29.019Z","2.3.0":"2019-11-03T00:56:27.880Z","2.2.0":"2019-10-25T22:50:29.067Z","2.1.0":"2019-10-25T19:45:55.095Z","2.0.2":"2019-08-28T06:20:28.791Z","2.0.1":"2019-08-16T22:16:08.322Z","2.0.0":"2019-07-18T00:07:08.506Z","1.0.0":"2019-06-10T03:20:42.458Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"versions":{"3.0.3":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"3.0.3","license":"MIT","source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^9.0.0"},"devDependencies":{"@octokit/core":"^4.0.0","@octokit/request":"^6.0.0","@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.9.0","@pika/plugin-build-web":"^0.9.0","@pika/plugin-ts-standard-pkg":"^0.9.0","@types/fetch-mock":"^7.3.1","@types/jest":"^29.0.0","fetch-mock":"^9.0.0","jest":"^29.0.0","prettier":"2.8.3","semantic-release":"^20.0.0","ts-jest":"^29.0.0","typescript":"^4.0.0"},"engines":{"node":">= 14"},"publishConfig":{"access":"public"},"gitHead":"18d36a14486799faa34355e02805415749231348","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"homepage":"https://github.com/octokit/auth-token.js#readme","_id":"@octokit/auth-token@3.0.3","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"ce7e48a3166731f26068d7a7a7996b5da58cbe0c","size":6701,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-3.0.3.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-3.0.3.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_3.0.3_1674258523015_0.03810207546505229"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-20T23:48:43.215Z","publish_time":1674258523215,"_cnpm_publish_time":1674258523215},"3.0.2":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"3.0.2","license":"MIT","source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^8.0.0"},"devDependencies":{"@octokit/core":"^4.0.0","@octokit/request":"^6.0.0","@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.9.0","@pika/plugin-build-web":"^0.9.0","@pika/plugin-ts-standard-pkg":"^0.9.0","@types/fetch-mock":"^7.3.1","@types/jest":"^29.0.0","fetch-mock":"^9.0.0","jest":"^29.0.0","prettier":"2.7.1","semantic-release":"^19.0.3","ts-jest":"^29.0.0","typescript":"^4.0.0"},"engines":{"node":">= 14"},"publishConfig":{"access":"public"},"gitHead":"72cc51b802c98d985e243f4a74ed567bcb8a7efa","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"homepage":"https://github.com/octokit/auth-token.js#readme","_id":"@octokit/auth-token@3.0.2","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"shasum":"a0fc8de149fd15876e1ac78f6525c1c5ab48435f","size":6899,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-3.0.2.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-3.0.2.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_3.0.2_1665638389516_0.7374044282239842"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-13T17:31:48.880Z","publish_time":1665638389704,"_cnpm_publish_time":1665638389704},"3.0.1":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"3.0.1","license":"MIT","source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^7.0.0"},"devDependencies":{"@octokit/core":"^4.0.0","@octokit/request":"^6.0.0","@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.9.0","@pika/plugin-build-web":"^0.9.0","@pika/plugin-ts-standard-pkg":"^0.9.0","@types/fetch-mock":"^7.3.1","@types/jest":"^28.0.0","fetch-mock":"^9.0.0","jest":"^28.0.0","prettier":"2.7.1","semantic-release":"^19.0.3","ts-jest":"^28.0.0","typescript":"^4.0.0"},"engines":{"node":">= 14"},"publishConfig":{"access":"public"},"gitHead":"00570a08dacb7281f6a13f1a4f815998cfe66076","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"homepage":"https://github.com/octokit/auth-token.js#readme","_id":"@octokit/auth-token@3.0.1","_nodeVersion":"16.16.0","_npmVersion":"8.17.0","dist":{"shasum":"88bc2baf5d706cb258474e722a720a8365dff2ec","size":6900,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-3.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-3.0.1.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_3.0.1_1660571847203_0.6250090394116543"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-15T13:58:39.385Z","publish_time":1660571847387,"_cnpm_publish_time":1660571847387},"3.0.0":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"3.0.0","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^6.0.3"},"devDependencies":{"@octokit/core":"^3.0.0","@octokit/request":"^5.3.0","@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.0","@pika/plugin-build-web":"^0.9.0","@pika/plugin-ts-standard-pkg":"^0.9.0","@types/fetch-mock":"^7.3.1","@types/jest":"^28.0.0","fetch-mock":"^9.0.0","jest":"^28.0.0","prettier":"2.7.1","semantic-release":"^19.0.3","ts-jest":"^28.0.0","typescript":"^4.0.0"},"engines":{"node":">= 14"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","gitHead":"8c56e5c4fa1f4337e6751716a190d5e1222a3500","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"homepage":"https://github.com/octokit/auth-token.js#readme","_id":"@octokit/auth-token@3.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.12.2","dist":{"shasum":"6f22c5fc56445c496628488ba6810131558fa4a9","size":6906,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-3.0.0.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_3.0.0_1657230992868_0.369423093049732"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-07T21:57:30.353Z","publish_time":1657230993022,"_cnpm_publish_time":1657230993022},"2.5.0":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.5.0","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^6.0.3"},"devDependencies":{"@octokit/core":"^3.0.0","@octokit/request":"^5.3.0","@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.0","@pika/plugin-build-web":"^0.9.0","@pika/plugin-ts-standard-pkg":"^0.9.0","@types/fetch-mock":"^7.3.1","@types/jest":"^27.0.0","fetch-mock":"^9.0.0","jest":"^27.0.0","prettier":"2.4.1","semantic-release":"^17.0.0","ts-jest":"^27.0.0-next.12","typescript":"^4.0.0"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","gitHead":"43a6d249982377fa7fa509ec9b137289fac956d8","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"homepage":"https://github.com/octokit/auth-token.js#readme","_id":"@octokit/auth-token@2.5.0","_nodeVersion":"12.22.6","_npmVersion":"7.23.0","dist":{"shasum":"27c37ea26c205f28443402477ffd261311f21e36","size":6902,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.5.0.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.5.0.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.5.0_1631813273669_0.7403581945678035"},"_hasShrinkwrap":false,"publish_time":1631813273834,"_cnpm_publish_time":1631813273834,"_cnpmcore_publish_time":"2021-12-14T06:47:15.331Z"},"2.4.5":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.4.5","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^6.0.3"},"devDependencies":{"@octokit/core":"^3.0.0","@octokit/request":"^5.3.0","@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.0","@pika/plugin-build-web":"^0.9.0","@pika/plugin-ts-standard-pkg":"^0.9.0","@types/fetch-mock":"^7.3.1","@types/jest":"^26.0.0","fetch-mock":"^9.0.0","jest":"^26.0.0","semantic-release":"^17.0.0","ts-jest":"^26.0.0","typescript":"^4.0.0"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","_id":"@octokit/auth-token@2.4.5","_nodeVersion":"12.20.0","_npmVersion":"6.14.11","dist":{"shasum":"568ccfb8cb46f36441fac094ce34f7a875b197f3","size":6447,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.4.5.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.4.5.tgz"},"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.4.5_1611596783219_0.694523529217467"},"_hasShrinkwrap":false,"publish_time":1611596783344,"_cnpm_publish_time":1611596783344},"2.4.4":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.4.4","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^6.0.0"},"devDependencies":{"@octokit/core":"^3.0.0","@octokit/request":"^5.3.0","@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.0","@pika/plugin-build-web":"^0.9.0","@pika/plugin-ts-standard-pkg":"^0.9.0","@types/fetch-mock":"^7.3.1","@types/jest":"^26.0.0","fetch-mock":"^9.0.0","jest":"^25.1.0","semantic-release":"^17.0.0","ts-jest":"^25.1.0","typescript":"^3.7.2"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","_id":"@octokit/auth-token@2.4.4","_nodeVersion":"12.19.0","_npmVersion":"6.14.9","dist":{"shasum":"ee31c69b01d0378c12fd3ffe406030f3d94d3b56","size":6431,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.4.4.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.4.4.tgz"},"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.4.4_1606803371639_0.6057644370825581"},"_hasShrinkwrap":false,"publish_time":1606803371757,"_cnpm_publish_time":1606803371757},"2.4.3":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.4.3","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^5.0.0"},"devDependencies":{"@octokit/core":"^3.0.0","@octokit/request":"^5.3.0","@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.0","@pika/plugin-build-web":"^0.9.0","@pika/plugin-ts-standard-pkg":"^0.9.0","@types/fetch-mock":"^7.3.1","@types/jest":"^26.0.0","fetch-mock":"^9.0.0","jest":"^25.1.0","semantic-release":"^17.0.0","ts-jest":"^25.1.0","typescript":"^3.7.2"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","_id":"@octokit/auth-token@2.4.3","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"shasum":"b868b5f2366533a7e62933eaa1181a8924228cc4","size":6424,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.4.3.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.4.3.tgz"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.4.3_1604253702498_0.15411134715698438"},"_hasShrinkwrap":false,"publish_time":1604253702626,"_cnpm_publish_time":1604253702626},"2.4.2":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.4.2","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^5.0.0"},"devDependencies":{"@octokit/core":"^2.2.0","@octokit/request":"^5.3.0","@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.0","@pika/plugin-build-web":"^0.9.0","@pika/plugin-ts-standard-pkg":"^0.9.0","@types/fetch-mock":"^7.3.1","@types/jest":"^26.0.0","fetch-mock":"^9.0.0","jest":"^25.1.0","semantic-release":"^17.0.0","ts-jest":"^25.1.0","typescript":"^3.7.2"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","_id":"@octokit/auth-token@2.4.2","_nodeVersion":"12.18.0","_npmVersion":"6.14.5","dist":{"shasum":"10d0ae979b100fa6b72fa0e8e63e27e6d0dbff8a","size":6426,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.4.2.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.4.2.tgz"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.4.2_1591811304472_0.6178017002225868"},"_hasShrinkwrap":false,"publish_time":1591811304576,"_cnpm_publish_time":1591811304576},"2.4.1":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.4.1","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^4.0.1"},"devDependencies":{"@octokit/core":"^2.2.0","@octokit/request":"^5.3.0","@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.9.0","@pika/plugin-build-web":"^0.9.0","@pika/plugin-ts-standard-pkg":"^0.9.0","@types/fetch-mock":"^7.3.1","@types/jest":"^25.1.0","fetch-mock":"^9.0.0","jest":"^25.1.0","semantic-release":"^17.0.0","ts-jest":"^25.1.0","typescript":"^3.7.2"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","_id":"@octokit/auth-token@2.4.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.5","dist":{"shasum":"375d79eebd03750e6a9b0299e80b8167c7c85655","size":6424,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.4.1.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.4.1.tgz"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.4.1_1590044279274_0.16811897063682268"},"_hasShrinkwrap":false,"publish_time":1590044279526,"_cnpm_publish_time":1590044279526},"2.4.0":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.4.0","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^2.0.0"},"devDependencies":{"@octokit/request":"^5.3.0","@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.7.0","@pika/plugin-build-web":"^0.7.0","@pika/plugin-ts-standard-pkg":"^0.7.0","@types/fetch-mock":"^7.3.1","@types/jest":"^24.0.13","fetch-mock":"^7.3.7","jest":"^24.8.0","semantic-release":"^15.13.12","ts-jest":"^24.0.2","typescript":"^3.5.1"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","_id":"@octokit/auth-token@2.4.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.1","dist":{"shasum":"b64178975218b99e4dfe948253f0673cbbb59d9f","size":6216,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.4.0.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.4.0.tgz"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.4.0_1572757708887_0.6135048896210427"},"_hasShrinkwrap":false,"publish_time":1572757709019,"_cnpm_publish_time":1572757709019},"2.3.0":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.3.0","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^2.0.0"},"devDependencies":{"@octokit/request":"^5.3.0","@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.7.0","@pika/plugin-build-web":"^0.7.0","@pika/plugin-ts-standard-pkg":"^0.7.0","@types/fetch-mock":"^7.3.1","@types/jest":"^24.0.13","fetch-mock":"^7.3.7","jest":"^24.8.0","semantic-release":"^15.13.12","ts-jest":"^24.0.2","typescript":"^3.5.1"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","_id":"@octokit/auth-token@2.3.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.1","dist":{"shasum":"317c3c36093b113e2c1e19cb1d8307fe3181ad97","size":6186,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.3.0.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.3.0.tgz"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.3.0_1572742587595_0.5562289175433326"},"_hasShrinkwrap":false,"publish_time":1572742587880,"_cnpm_publish_time":1572742587880},"2.2.0":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.2.0","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^1.1.0"},"devDependencies":{"@octokit/request":"^5.3.0","@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.7.0","@pika/plugin-build-web":"^0.7.0","@pika/plugin-ts-standard-pkg":"^0.7.0","@types/fetch-mock":"^7.3.1","@types/jest":"^24.0.13","fetch-mock":"^7.3.7","jest":"^24.8.0","semantic-release":"^15.13.12","ts-jest":"^24.0.2","typescript":"^3.5.1"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","deno":"dist-web/index.js","_id":"@octokit/auth-token@2.2.0","_nodeVersion":"12.13.0","_npmVersion":"6.10.1","dist":{"shasum":"538a63e60b0fc43d819124d0b05d204018ede81e","size":5540,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.2.0.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.2.0.tgz"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.2.0_1572043828915_0.4115556752111966"},"_hasShrinkwrap":false,"publish_time":1572043829067,"_cnpm_publish_time":1572043829067},"2.1.0":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.1.0","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/types":"^1.0.0"},"devDependencies":{"@octokit/request":"^5.3.0","@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.7.0","@pika/plugin-build-web":"^0.7.0","@pika/plugin-ts-standard-pkg":"^0.7.0","@types/fetch-mock":"^7.3.1","@types/jest":"^24.0.13","fetch-mock":"^7.3.7","jest":"^24.8.0","semantic-release":"^15.13.12","ts-jest":"^24.0.2","typescript":"^3.5.1"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","deno":"dist-web/index.js","_id":"@octokit/auth-token@2.1.0","_nodeVersion":"12.13.0","_npmVersion":"6.10.1","dist":{"shasum":"44c6510800a9d9de9a3fc8979794231fa03a6ed0","size":5590,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.1.0.tgz"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.1.0_1572032754976_0.24286144244149077"},"_hasShrinkwrap":false,"publish_time":1572032755095,"_cnpm_publish_time":1572032755095},"2.0.2":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.0.2","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{"@octokit/request":"^5.0.1"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.6.0","@pika/plugin-build-web":"^0.6.0","@pika/plugin-ts-standard-pkg":"^0.6.0","@types/fetch-mock":"^7.3.1","@types/jest":"^24.0.13","fetch-mock":"^7.3.7","jest":"^24.8.0","semantic-release":"^15.13.12","ts-jest":"^24.0.2","typescript":"^3.5.1"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","_id":"@octokit/auth-token@2.0.2","_nodeVersion":"10.16.3","_npmVersion":"6.10.1","dist":{"shasum":"06b54ca8a4d08031ba89ee98683b384d33006d3d","size":6800,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.0.2.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.0.2.tgz"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.0.2_1566973228628_0.017522536328631544"},"_hasShrinkwrap":false,"publish_time":1566973228791,"_cnpm_publish_time":1566973228791},"2.0.1":{"name":"@octokit/auth-token","publishConfig":{"access":"public"},"version":"2.0.1","description":"GitHub API token authentication for browsers and Node.js","scripts":{"build":"pika build","test":"jest --coverage"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"keywords":["github","octokit","authentication","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"homepage":"https://github.com/octokit/auth-token.js#readme","dependencies":{"@octokit/request":"^5.0.1"},"devDependencies":{"@pika/pack":"^0.5.0","@pika/plugin-build-node":"^0.6.0","@pika/plugin-build-web":"^0.6.0","@pika/plugin-ts-standard-pkg":"^0.6.0","@types/fetch-mock":"^7.3.1","@types/jest":"^24.0.13","fetch-mock":"^7.3.7","jest":"^24.8.0","semantic-release":"^15.13.12","ts-jest":"^24.0.2","typescript":"^3.5.1"},"jest":{"preset":"ts-jest","coverageThreshold":{"global":{"statements":100,"branches":100,"functions":100,"lines":100}}},"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/github",["@semantic-release/npm",{"pkgRoot":"./pkg"}]],"@pika/pack":{"pipeline":[["@pika/plugin-ts-standard-pkg"],["@pika/plugin-build-node"],["@pika/plugin-build-web"]]},"gitHead":"f445da88c879e34585d4283307d64939f5f3e6aa","_id":"@octokit/auth-token@2.0.1","_nodeVersion":"10.16.3","_npmVersion":"6.10.1","dist":{"shasum":"0d7e3a4c006034a806517c9e256c0d2bb81ff9d7","size":7866,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.0.1.tgz"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.0.1_1565993768143_0.1579549730314025"},"_hasShrinkwrap":false,"publish_time":1565993768322,"_cnpm_publish_time":1565993768322},"2.0.0":{"name":"@octokit/auth-token","description":"GitHub API token authentication for browsers and Node.js","version":"2.0.0","license":"MIT","pika":true,"sideEffects":false,"keywords":["github","octokit","authentication","api"],"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"dependencies":{},"devDependencies":{"@octokit/request":"^5.0.1","@pika/pack":"^0.4.0","@pika/plugin-build-node":"^0.4.0","@pika/plugin-build-web":"^0.4.0","@pika/plugin-bundle-web":"^0.4.0","@pika/plugin-ts-standard-pkg":"^0.4.0","@types/fetch-mock":"^7.3.1","@types/jest":"^24.0.13","fetch-mock":"^7.3.7","jest":"^24.8.0","pika-plugin-unpkg-field":"^1.1.0","semantic-release":"^15.13.12","ts-jest":"^24.0.2","typescript":"^3.5.1"},"publishConfig":{"access":"public"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","module":"dist-web/index.js","unpkg":"dist-web/index.bundled.js","_id":"@octokit/auth-token@2.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.10.1","dist":{"shasum":"f686d195031ef3fee35dcb130a574c2c27017aca","size":6272,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-2.0.0.tgz"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmUser":{"name":"octokitbot","email":"octokitbot@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_2.0.0_1563408428388_0.3439197768570119"},"_hasShrinkwrap":false,"publish_time":1563408428506,"_cnpm_publish_time":1563408428506},"1.0.0":{"name":"@octokit/auth-token","publishConfig":{"access":"public"},"version":"1.0.0","description":"Octokit library implementing the token authentication strategy for browsers and Node.js","main":"index.js","scripts":{"build":"pack build","test":"jest --coverage"},"repository":{"type":"git","url":"git+https://github.com/octokit/auth-token.js.git"},"keywords":["github","octokit","authentication","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"homepage":"https://github.com/octokit/auth-token.js#readme","devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-build-web":"^0.4.0","@pika/plugin-bundle-web":"^0.4.0","@pika/plugin-ts-standard-pkg":"^0.4.0","@types/jest":"^24.0.13","jest":"^24.8.0","pika-plugin-unpkg-field":"^1.1.0","ts-jest":"^24.0.2","typescript":"^3.5.1","semantic-release":"^15.13.12"},"jest":{"preset":"ts-jest","coverageThreshold":{"global":{"statements":100,"branches":100,"functions":100,"lines":100}}},"@pika/pack":{"pipeline":[["@pika/plugin-ts-standard-pkg"],["@pika/plugin-build-node"],["@pika/plugin-build-web"],["@pika/plugin-bundle-web",{"browser":true}],["pika-plugin-unpkg-field"]]},"gitHead":"8e09948f117c8388ab6b1181bdfea63f99009100","_id":"@octokit/auth-token@1.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"bba06786df9ae112da9dda6b80b2eb130ec5eb9c","size":5661,"noattachment":false,"key":"/@octokit/auth-token/-/@octokit/auth-token-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@octokit/auth-token/download/@octokit/auth-token-1.0.0.tgz"},"maintainers":[{"name":"gr2m","email":""},{"name":"kfcampbell","email":""},{"name":"nickfloyd","email":""},{"name":"octokitbot","email":""}],"_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auth-token_1.0.0_1560136842342_0.8717146601803527"},"_hasShrinkwrap":false,"publish_time":1560136842458,"_cnpm_publish_time":1560136842458}},"readme":"# auth-token.js\n\n> GitHub API token authentication for browsers and Node.js\n\n[![@latest](https://img.shields.io/npm/v/@octokit/auth-token.svg)](https://www.npmjs.com/package/@octokit/auth-token)\n[![Build Status](https://github.com/octokit/auth-token.js/workflows/Test/badge.svg)](https://github.com/octokit/auth-token.js/actions?query=workflow%3ATest)\n\n`@octokit/auth-token` is the simplest of [GitHub’s authentication strategies](https://github.com/octokit/auth.js).\n\nIt is useful if you want to support multiple authentication strategies, as it’s API is compatible with its sibling packages for [basic](https://github.com/octokit/auth-basic.js), [GitHub App](https://github.com/octokit/auth-app.js) and [OAuth app](https://github.com/octokit/auth.js) authentication.\n\n<!-- toc -->\n\n- [Usage](#usage)\n- [`createTokenAuth(token) options`](#createtokenauthtoken-options)\n- [`auth()`](#auth)\n- [Authentication object](#authentication-object)\n- [`auth.hook(request, route, options)` or `auth.hook(request, options)`](#authhookrequest-route-options-or-authhookrequest-options)\n- [Find more information](#find-more-information)\n  - [Find out what scopes are enabled for oauth tokens](#find-out-what-scopes-are-enabled-for-oauth-tokens)\n  - [Find out if token is a personal access token or if it belongs to an OAuth app](#find-out-if-token-is-a-personal-access-token-or-if-it-belongs-to-an-oauth-app)\n  - [Find out what permissions are enabled for a repository](#find-out-what-permissions-are-enabled-for-a-repository)\n  - [Use token for git operations](#use-token-for-git-operations)\n- [License](#license)\n\n<!-- tocstop -->\n\n## Usage\n\n<table>\n<tbody valign=top align=left>\n<tr><th>\nBrowsers\n</th><td width=100%>\n\nLoad `@octokit/auth-token` directly from [cdn.skypack.dev](https://cdn.skypack.dev)\n\n```html\n<script type=\"module\">\n  import { createTokenAuth } from \"https://cdn.skypack.dev/@octokit/auth-token\";\n</script>\n```\n\n</td></tr>\n<tr><th>\nNode\n</th><td>\n\nInstall with <code>npm install @octokit/auth-token</code>\n\n```js\nconst { createTokenAuth } = require(\"@octokit/auth-token\");\n// or: import { createTokenAuth } from \"@octokit/auth-token\";\n```\n\n</td></tr>\n</tbody>\n</table>\n\n```js\nconst auth = createTokenAuth(\"ghp_PersonalAccessToken01245678900000000\");\nconst authentication = await auth();\n// {\n//   type: 'token',\n//   token: 'ghp_PersonalAccessToken01245678900000000',\n//   tokenType: 'oauth'\n// }\n```\n\n## `createTokenAuth(token) options`\n\nThe `createTokenAuth` method accepts a single argument of type string, which is the token. The passed token can be one of the following:\n\n- [Personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line)\n- [OAuth access token](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/)\n- [GITHUB_TOKEN provided to GitHub Actions](https://developer.github.com/actions/creating-github-actions/accessing-the-runtime-environment/#environment-variables)\n- Installation access token ([server-to-server](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation))\n- User authentication for installation ([user-to-server](https://docs.github.com/en/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps))\n\nExamples\n\n```js\n// Personal access token or OAuth access token\ncreateTokenAuth(\"ghp_PersonalAccessToken01245678900000000\");\n// {\n//   type: 'token',\n//   token: 'ghp_PersonalAccessToken01245678900000000',\n//   tokenType: 'oauth'\n// }\n\n// Installation access token or GitHub Action token\ncreateTokenAuth(\"ghs_InstallallationOrActionToken00000000\");\n// {\n//   type: 'token',\n//   token: 'ghs_InstallallationOrActionToken00000000',\n//   tokenType: 'installation'\n// }\n\n// Installation access token or GitHub Action token\ncreateTokenAuth(\"ghu_InstallationUserToServer000000000000\");\n// {\n//   type: 'token',\n//   token: 'ghu_InstallationUserToServer000000000000',\n//   tokenType: 'user-to-server'\n// }\n```\n\n## `auth()`\n\nThe `auth()` method has no options. It returns a promise which resolves with the the authentication object.\n\n## Authentication object\n\n<table width=\"100%\">\n  <thead align=left>\n    <tr>\n      <th width=150>\n        name\n      </th>\n      <th width=70>\n        type\n      </th>\n      <th>\n        description\n      </th>\n    </tr>\n  </thead>\n  <tbody align=left valign=top>\n    <tr>\n      <th>\n        <code>type</code>\n      </th>\n      <th>\n        <code>string</code>\n      </th>\n      <td>\n        <code>\"token\"</code>\n      </td>\n    </tr>\n    <tr>\n      <th>\n        <code>token</code>\n      </th>\n      <th>\n        <code>string</code>\n      </th>\n      <td>\n        The provided token.\n      </td>\n    </tr>\n    <tr>\n      <th>\n        <code>tokenType</code>\n      </th>\n      <th>\n        <code>string</code>\n      </th>\n      <td>\n        Can be either <code>\"oauth\"</code> for personal access tokens and OAuth tokens, <code>\"installation\"</code> for installation access tokens (includes <code>GITHUB_TOKEN</code> provided to GitHub Actions), <code>\"app\"</code> for a GitHub App JSON Web Token, or <code>\"user-to-server\"</code> for a user authentication token through an app installation.\n      </td>\n    </tr>\n  </tbody>\n</table>\n\n## `auth.hook(request, route, options)` or `auth.hook(request, options)`\n\n`auth.hook()` hooks directly into the request life cycle. It authenticates the request using the provided token.\n\nThe `request` option is an instance of [`@octokit/request`](https://github.com/octokit/request.js#readme). The `route`/`options` parameters are the same as for the [`request()` method](https://github.com/octokit/request.js#request).\n\n`auth.hook()` can be called directly to send an authenticated request\n\n```js\nconst { data: authorizations } = await auth.hook(\n  request,\n  \"GET /authorizations\"\n);\n```\n\nOr it can be passed as option to [`request()`](https://github.com/octokit/request.js#request).\n\n```js\nconst requestWithAuth = request.defaults({\n  request: {\n    hook: auth.hook,\n  },\n});\n\nconst { data: authorizations } = await requestWithAuth(\"GET /authorizations\");\n```\n\n## Find more information\n\n`auth()` does not send any requests, it only transforms the provided token string into an authentication object.\n\nHere is a list of things you can do to retrieve further information\n\n### Find out what scopes are enabled for oauth tokens\n\nNote that this does not work for installations. There is no way to retrieve permissions based on an installation access tokens.\n\n```js\nconst TOKEN = \"ghp_PersonalAccessToken01245678900000000\";\n\nconst auth = createTokenAuth(TOKEN);\nconst authentication = await auth();\n\nconst response = await request(\"HEAD /\");\nconst scopes = response.headers[\"x-oauth-scopes\"].split(/,\\s+/);\n\nif (scopes.length) {\n  console.log(\n    `\"${TOKEN}\" has ${scopes.length} scopes enabled: ${scopes.join(\", \")}`\n  );\n} else {\n  console.log(`\"${TOKEN}\" has no scopes enabled`);\n}\n```\n\n### Find out if token is a personal access token or if it belongs to an OAuth app\n\n```js\nconst TOKEN = \"ghp_PersonalAccessToken01245678900000000\";\n\nconst auth = createTokenAuth(TOKEN);\nconst authentication = await auth();\n\nconst response = await request(\"HEAD /\");\nconst clientId = response.headers[\"x-oauth-client-id\"];\n\nif (clientId) {\n  console.log(\n    `\"${token}\" is an OAuth token, its app’s client_id is ${clientId}.`\n  );\n} else {\n  console.log(`\"${token}\" is a personal access token`);\n}\n```\n\n### Find out what permissions are enabled for a repository\n\nNote that the `permissions` key is not set when authenticated using an installation access token.\n\n```js\nconst TOKEN = \"ghp_PersonalAccessToken01245678900000000\";\n\nconst auth = createTokenAuth(TOKEN);\nconst authentication = await auth();\n\nconst response = await request(\"GET /repos/{owner}/{repo}\", {\n  owner: \"octocat\",\n  repo: \"hello-world\",\n});\n\nconsole.log(response.data.permissions);\n// {\n//   admin: true,\n//   push: true,\n//   pull: true\n// }\n```\n\n### Use token for git operations\n\nBoth OAuth and installation access tokens can be used for git operations. However, when using with an installation, [the token must be prefixed with `x-access-token`](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#http-based-git-access-by-an-installation).\n\nThis example is using the [`execa`](https://github.com/sindresorhus/execa) package to run a `git push` command.\n\n```js\nconst TOKEN = \"ghp_PersonalAccessToken01245678900000000\";\n\nconst auth = createTokenAuth(TOKEN);\nconst { token, tokenType } = await auth();\nconst tokenWithPrefix =\n  tokenType === \"installation\" ? `x-access-token:${token}` : token;\n\nconst repositoryUrl = `https://${tokenWithPrefix}@github.com/octocat/hello-world.git`;\n\nconst { stdout } = await execa(\"git\", [\"push\", repositoryUrl]);\nconsole.log(stdout);\n```\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/octokit/auth-token.js#readme","bugs":{"url":"https://github.com/octokit/auth-token.js/issues"},"license":"MIT"}