{"_id":"@kittycad/oauth2-auth-code-pkce","_rev":"7-48faa7a009186e500afd5c2ab85d511a","name":"@kittycad/oauth2-auth-code-pkce","dist-tags":{"latest":"4.0.0"},"versions":{"3.1.0":{"name":"@kittycad/oauth2-auth-code-pkce","version":"3.1.0","keywords":["oauth","oauth2","pkce"],"author":{"name":"Lee Fallat"},"license":"Apache-2.0","_id":"@kittycad/oauth2-auth-code-pkce@3.1.0","maintainers":[{"name":"jess","email":"no-reply-npm@jessfraz.com"},{"name":"irevdev","email":"k.hutten@protonmail.ch"},{"name":"franknoirot_zoo","email":"frank@kittycad.io"},{"name":"paultag","email":"paultag@gmail.com"},{"name":"maxammann_zoo","email":"max.ammann@zoo.dev"},{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},{"name":"pierre-at-zoo","email":"pierre@zoo.dev"}],"homepage":"https://github.com/KittyCAD/oauth2-auth-code-pkce#readme","bugs":{"url":"https://github.com/KittyCAD/oauth2-auth-code-pkce/issues"},"dist":{"shasum":"1301565e79934ac4be7fe132796ee24d1b6be865","tarball":"https://registry.npmjs.org/@kittycad/oauth2-auth-code-pkce/-/oauth2-auth-code-pkce-3.1.0.tgz","fileCount":7,"integrity":"sha512-BdD8z6yQz+QsogrkdRMBsna7lHfrGcLfK2h4Qzt87tI+3kXzTDtvUOMmMO8up9dsChJG7aTWoPXLieNTs3xonA==","signatures":[{"sig":"MEYCIQCFpTsyHGNP84ndAkrPbqOF+9/24T7pbNfV0AEYh8GNsgIhAM9tT0ZxjdIRIzaoPozRgkrn/qNQ+8JkLELY1O2RK1yQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77492},"main":"index.js","types":"index.ts","gitHead":"ebadc90d01dd76f393f3c01e2efaf63eb77d58cb","scripts":{},"_npmUser":{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},"repository":{"url":"git+https://github.com/KittyCAD/oauth2-auth-code-pkce.git","type":"git"},"_npmVersion":"10.9.0","description":"An OAuth 2.0 client that ONLY supports Authorization Code flow with PKCE support.","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.0","typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/oauth2-auth-code-pkce_3.1.0_1778013216374_0.4370582223924726","host":"s3://npm-registry-packages-npm-production"}},"3.1.1":{"name":"@kittycad/oauth2-auth-code-pkce","version":"3.1.1","keywords":["oauth","oauth2","pkce"],"author":{"name":"Lee Fallat"},"license":"Apache-2.0","_id":"@kittycad/oauth2-auth-code-pkce@3.1.1","maintainers":[{"name":"jess","email":"no-reply-npm@jessfraz.com"},{"name":"irevdev","email":"k.hutten@protonmail.ch"},{"name":"franknoirot_zoo","email":"frank@kittycad.io"},{"name":"paultag","email":"paultag@gmail.com"},{"name":"maxammann_zoo","email":"max.ammann@zoo.dev"},{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},{"name":"pierre-at-zoo","email":"pierre@zoo.dev"}],"homepage":"https://github.com/KittyCAD/oauth2-auth-code-pkce#readme","bugs":{"url":"https://github.com/KittyCAD/oauth2-auth-code-pkce/issues"},"dist":{"shasum":"0c05325a1d9a8e3b662c210fd5cbe0e3af74ed93","tarball":"https://registry.npmjs.org/@kittycad/oauth2-auth-code-pkce/-/oauth2-auth-code-pkce-3.1.1.tgz","fileCount":7,"integrity":"sha512-5Wmj/oHRD1EUu8+g33mNLFbaSYjT9ps7U81QfgXqlW8JN/VXXsgreaoOiPxXrG4E1hV3XFtvPXUHg+a0R/gQpQ==","signatures":[{"sig":"MEQCIGkIpxTl0CxenwFoeUxdJ0gevW+9qAs2hVekfFvX1bHXAiAWt9XzaYCR5dI8fUcuNudwhN0qGVkqln9I0QRVpYMFww==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77344},"main":"index.js","types":"index.ts","gitHead":"2136bc105730aac7c70db2f41d38ffdab4dea4bc","scripts":{},"_npmUser":{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},"repository":{"url":"git+https://github.com/KittyCAD/oauth2-auth-code-pkce.git","type":"git"},"_npmVersion":"10.9.0","description":"An OAuth 2.0 client that ONLY supports Authorization Code flow with PKCE support.","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.0","typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/oauth2-auth-code-pkce_3.1.1_1778023070363_0.9022305946082301","host":"s3://npm-registry-packages-npm-production"}},"3.1.2":{"name":"@kittycad/oauth2-auth-code-pkce","version":"3.1.2","keywords":["oauth","oauth2","pkce"],"author":{"name":"Lee Fallat"},"license":"Apache-2.0","_id":"@kittycad/oauth2-auth-code-pkce@3.1.2","maintainers":[{"name":"jess","email":"no-reply-npm@jessfraz.com"},{"name":"irevdev","email":"k.hutten@protonmail.ch"},{"name":"franknoirot_zoo","email":"frank@kittycad.io"},{"name":"paultag","email":"paultag@gmail.com"},{"name":"maxammann_zoo","email":"max.ammann@zoo.dev"},{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},{"name":"pierre-at-zoo","email":"pierre@zoo.dev"}],"homepage":"https://github.com/KittyCAD/oauth2-auth-code-pkce#readme","bugs":{"url":"https://github.com/KittyCAD/oauth2-auth-code-pkce/issues"},"dist":{"shasum":"35f4a47b82b77fb33e9d0718d1cc53977cdda884","tarball":"https://registry.npmjs.org/@kittycad/oauth2-auth-code-pkce/-/oauth2-auth-code-pkce-3.1.2.tgz","fileCount":7,"integrity":"sha512-iyx8du/+tkKdweoeEzElZDMyC77FJGTM5V5BfN4ivFZjT/kaUkSzHqC8kAlywecpxDWktyeHpx82EKQfgrDvfA==","signatures":[{"sig":"MEUCIBcbp5dVJUpZsRoJYK2Ev+0RE4zh+zaTG+OgecgDI/e/AiEAmnbw7O5TCHLMsY20ktWY2vMWfpbGlVyVBniUXM4CY5E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77362},"main":"index.js","types":"index.ts","gitHead":"6ed4c44684a545ef72cf7a2936070abc2b1156e6","scripts":{},"_npmUser":{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},"repository":{"url":"git+https://github.com/KittyCAD/oauth2-auth-code-pkce.git","type":"git"},"_npmVersion":"10.9.0","description":"An OAuth 2.0 client that ONLY supports Authorization Code flow with PKCE support.","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.0","typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/oauth2-auth-code-pkce_3.1.2_1778025739497_0.6299746165146693","host":"s3://npm-registry-packages-npm-production"}},"3.1.3":{"name":"@kittycad/oauth2-auth-code-pkce","version":"3.1.3","keywords":["oauth","oauth2","pkce"],"author":{"name":"Lee Fallat"},"license":"Apache-2.0","_id":"@kittycad/oauth2-auth-code-pkce@3.1.3","maintainers":[{"name":"jess","email":"no-reply-npm@jessfraz.com"},{"name":"irevdev","email":"k.hutten@protonmail.ch"},{"name":"franknoirot_zoo","email":"frank@kittycad.io"},{"name":"paultag","email":"paultag@gmail.com"},{"name":"maxammann_zoo","email":"max.ammann@zoo.dev"},{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},{"name":"pierre-at-zoo","email":"pierre@zoo.dev"}],"homepage":"https://github.com/KittyCAD/oauth2-auth-code-pkce#readme","bugs":{"url":"https://github.com/KittyCAD/oauth2-auth-code-pkce/issues"},"dist":{"shasum":"dd21a262bff05c6676523f7370de543529a2b7c2","tarball":"https://registry.npmjs.org/@kittycad/oauth2-auth-code-pkce/-/oauth2-auth-code-pkce-3.1.3.tgz","fileCount":7,"integrity":"sha512-icTsMYnSrGfPcfJARgb9gCibKUf/xKZMFAnf5mD6UnAs6SjEfA6nr6cBYZVF2bDfSoAhRm8RpsQppjseVKoFWQ==","signatures":[{"sig":"MEUCIFX1l9GpaT7iZBtvRItpUpAoSCnMDTUmvNp2L893AGYyAiEAhgA/XW1C7s6JvBNcZW8dTbAmlM2LakHstCBzlcDZO0g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77739},"main":"index.js","types":"index.ts","gitHead":"50e46a1d8a5f5c5fc8be3742a5d90d3bf6abd938","scripts":{},"_npmUser":{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},"repository":{"url":"git+https://github.com/KittyCAD/oauth2-auth-code-pkce.git","type":"git"},"_npmVersion":"10.9.0","description":"An OAuth 2.0 client that ONLY supports Authorization Code flow with PKCE support.","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.0","typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/oauth2-auth-code-pkce_3.1.3_1778026779230_0.22224350970922968","host":"s3://npm-registry-packages-npm-production"}},"3.1.4":{"name":"@kittycad/oauth2-auth-code-pkce","version":"3.1.4","keywords":["oauth","oauth2","pkce"],"author":{"name":"Lee Fallat"},"license":"Apache-2.0","_id":"@kittycad/oauth2-auth-code-pkce@3.1.4","maintainers":[{"name":"jess","email":"no-reply-npm@jessfraz.com"},{"name":"irevdev","email":"k.hutten@protonmail.ch"},{"name":"franknoirot_zoo","email":"frank@kittycad.io"},{"name":"paultag","email":"paultag@gmail.com"},{"name":"maxammann_zoo","email":"max.ammann@zoo.dev"},{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},{"name":"pierre-at-zoo","email":"pierre@zoo.dev"}],"homepage":"https://github.com/KittyCAD/oauth2-auth-code-pkce#readme","bugs":{"url":"https://github.com/KittyCAD/oauth2-auth-code-pkce/issues"},"dist":{"shasum":"88b217f3a4ab4ba2433ea3fe5c200c5f53785683","tarball":"https://registry.npmjs.org/@kittycad/oauth2-auth-code-pkce/-/oauth2-auth-code-pkce-3.1.4.tgz","fileCount":7,"integrity":"sha512-hDVw+Mq3jwFcgh0NNwEn+QID+9fIvXyasI4XhHIAQ0yQMqYNI/rV9BSeGVm2y5JKpXb3FfOZk3PNL0k7z8qnBg==","signatures":[{"sig":"MEQCIFbhuNEBuDIEMuzgvMLZ9N11QvWFZAwvTFAssWXft/CUAiAeGsk6pjeBawqz/XunXc+9/NDxQEh3Aqz8ouqDL4FSiw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":80108},"main":"index.js","types":"index.ts","gitHead":"790efe6c7c759bcb32e129083b0c4a4f2602d842","scripts":{},"_npmUser":{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},"repository":{"url":"git+https://github.com/KittyCAD/oauth2-auth-code-pkce.git","type":"git"},"_npmVersion":"10.9.0","description":"An OAuth 2.0 client that ONLY supports Authorization Code flow with PKCE support.","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.0","typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/oauth2-auth-code-pkce_3.1.4_1778069929254_0.5611516750320962","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"@kittycad/oauth2-auth-code-pkce","version":"4.0.0","keywords":["oauth","oauth2","pkce"],"author":{"name":"Lee Fallat"},"license":"Apache-2.0","_id":"@kittycad/oauth2-auth-code-pkce@4.0.0","maintainers":[{"name":"jess","email":"no-reply-npm@jessfraz.com"},{"name":"irevdev","email":"k.hutten@protonmail.ch"},{"name":"franknoirot_zoo","email":"frank@kittycad.io"},{"name":"paultag","email":"paultag@gmail.com"},{"name":"maxammann_zoo","email":"max.ammann@zoo.dev"},{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},{"name":"pierre-at-zoo","email":"pierre@zoo.dev"}],"homepage":"https://github.com/KittyCAD/oauth2-auth-code-pkce#readme","bugs":{"url":"https://github.com/KittyCAD/oauth2-auth-code-pkce/issues"},"dist":{"shasum":"6893ac5e2755773b711306c3f3d6b5add1adf5ee","tarball":"https://registry.npmjs.org/@kittycad/oauth2-auth-code-pkce/-/oauth2-auth-code-pkce-4.0.0.tgz","fileCount":7,"integrity":"sha512-qPfxIF7tgdHmAHOCT4h/TpXM69B+2Nb9G7Xf/E/PAJJ8IhpRwzYZcVTfWkZiyszmZY6Hg56/4M337qfoeEVJHg==","signatures":[{"sig":"MEQCIEa0o6/tyFQRu/e2BlE3V9hkBjHVYH+XrtYXdO2uStGVAiBkHxhcyLlF48yCAn4NkInCrsVQ5ECvKjcrAbRamLIEyQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":80288},"main":"./index.js","type":"module","types":"./index.d.ts","module":"./index.js","exports":{".":{"types":"./index.d.ts","import":"./index.js","default":"./index.js"}},"gitHead":"60d28ecf0575154aa5626df00454dcc79cca59bc","scripts":{},"_npmUser":{"name":"lee-at-zoo-corp","email":"lee@zoo.dev"},"repository":{"url":"git+https://github.com/KittyCAD/oauth2-auth-code-pkce.git","type":"git"},"_npmVersion":"10.9.0","description":"An OAuth 2.0 client that ONLY supports Authorization Code flow with PKCE support.","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.0","typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/oauth2-auth-code-pkce_4.0.0_1778609516779_0.5247282206749904","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-05-05T20:33:36.312Z","modified":"2026-06-15T23:26:38.628Z","3.1.0":"2026-05-05T20:33:36.532Z","3.1.1":"2026-05-05T23:17:50.500Z","3.1.2":"2026-05-06T00:02:19.682Z","3.1.3":"2026-05-06T00:19:39.371Z","3.1.4":"2026-05-06T12:18:49.460Z","4.0.0":"2026-05-12T18:11:56.928Z"},"bugs":{"url":"https://github.com/KittyCAD/oauth2-auth-code-pkce/issues"},"author":{"name":"Lee Fallat"},"license":"Apache-2.0","homepage":"https://github.com/KittyCAD/oauth2-auth-code-pkce#readme","keywords":["oauth","oauth2","pkce"],"repository":{"url":"git+https://github.com/KittyCAD/oauth2-auth-code-pkce.git","type":"git"},"description":"An OAuth 2.0 client that ONLY supports Authorization Code flow with PKCE support.","maintainers":[{"email":"iterion@gmail.com","name":"iterion"},{"email":"no-reply-npm@jessfraz.com","name":"jess"},{"email":"k.hutten@protonmail.ch","name":"irevdev"},{"email":"frank@kittycad.io","name":"franknoirot_zoo"},{"email":"paultag@gmail.com","name":"paultag"},{"email":"max.ammann@zoo.dev","name":"maxammann_zoo"},{"email":"lee@zoo.dev","name":"lee-at-zoo-corp"},{"email":"pierre@zoo.dev","name":"pierre-at-zoo"}],"readme":"# OAuth2AuthCodePKCE client\n\nA zero dependency OAuth 2.0 client supporting *only* the authorization code\ngrant ([RFC 6749 § 4.1][]) with PKCE ([RFC 7636][]) for client side protection.\n\n[RFC 6749 § 4.1]: https://tools.ietf.org/html/rfc6749#section-4.1\n[RFC 7636]: https://tools.ietf.org/html/rfc7636\n\n1 file implementation for easy auditing.\n\n## Installation\n\n`npm install @kittycad/oauth2-auth-code-pkce`\n\n## Demo\n\nSee the source code of `pubilc/index.html`. It's commented with helpful\ninformation. You can run the demo with `make serve`.\n\nThis page acts as a test panel for various scenarios. Play around! :)\n\nModify the example to use the correct configuration.\n\n## Exposing other query string parameters on return\n\nSome OAuth servers will return additional parameters to the requester. In order\nto access these they must be explicitly asked for:\n\n```\nconfig.explicitlyExposedTokens = ['open_id'];\n```\n\nThen this will be available as a property:\n`accessContext.explicitlyExposedTokens.open_id`.\n\n## Extra parameters which other OAuth servers require\n\nIt is probable you will encounter an OAuth server which requires some additional\nparameters. In order to pass extra parameters, add the following to the\nconfiguration:\n\n```\nconfig.extraAuthorizationParams = { 'some_query_string_param': 'value', ... };\n```\n\nIf you have values which need to be computed at run-time and then passed, you\ncan pass them like so:\n\n```\noauth2.fetchAuthorizationCode({ 'another_query_string_param': computedValue });\n```\n\n## Module systems supported\n\n| Module system                       | File                      |\n|:------------------------------------|:--------------------------|\n| Browser (window.OAuth2AuthCodePKCE) | index.iife.js             |\n| TypeScript                          | index.ts                  |\n\n## Development\n\nMore to come\n","readmeFilename":"README.md"}