{"_id":"oauth-callback","_rev":"21-8cab4c389ba4997b237322ec25631474","name":"oauth-callback","dist-tags":{"latest":"3.2.0"},"versions":{"0.0.1":{"name":"oauth-callback","version":"0.0.1","keywords":["oauth","callback","authentication","auth","bun","oauth2","login","authorization","web","handler","security","redirect","token","javascript","typescript","rfc6749","rfc7591","openid","oidc","client","server","middleware","express","fastify","session","jwt","bearer","access-token","refresh-token"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@0.0.1","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://github.com/kriasoft/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"6d68cfe0d86433383852828a980dc0cb8a9f0315","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-0.0.1.tgz","fileCount":6,"integrity":"sha512-abOVw8r4RxgPYeweT5a3Vyc3B9GAxy80CCPErkX2ewhbzZiF4Ww6b1yl0pl0EOx1HweZXYvl25NepHQxZ+5nNw==","signatures":[{"sig":"MEUCIQDvfWy2NFqzSdmZK0t89VwPu9BzhbZLy/aEHhja/3Zd5wIgTTOXmXIt5DSfhZxpY7Dy1e01O/COjGw6rG3c38Abd/A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10981},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"bun":"./index.ts","deno":"./index.ts","types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"53bc6c2fb46338ffbf7f4a7e1a113e7593394f40","scripts":{"test":"bun test","build":"bun build ./index.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","prepublishOnly":"bun run build"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"useTabs":false,"tabWidth":2,"printWidth":80,"singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.5.2","description":"Lightweight OAuth 2.0 and OpenID Connect callback handler for Node.js, Deno and Bun applications with RFC 6749 and RFC 7591 compliance","directories":{},"_nodeVersion":"24.5.0","_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.6.2","@types/bun":"latest","typescript":"^5.9.2"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_0.0.1_1755182813094_0.21410445805983858","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"oauth-callback","version":"0.1.0","keywords":["oauth","callback","authentication","auth","bun","oauth2","login","authorization","web","handler","security","redirect","token","javascript","typescript","rfc6749","rfc7591","openid","oidc","client","server","middleware","express","fastify","session","jwt","bearer","access-token","refresh-token"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@0.1.0","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://github.com/kriasoft/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"4934afff7bb8c13a5c44a324494857657d4b6f81","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-0.1.0.tgz","fileCount":19,"integrity":"sha512-Jm+PbsWBwqv1FIYo17yqLPFZgsS7w4S7SaM2ZGLJUrJE7myhQJ4+mo0Lch69RqTfyQGPbqtkx0VS2j03P35w5g==","signatures":[{"sig":"MEUCIQDAj3wfWWjSbf31Q9bRp2gyeP1jR3vRfPSolIi5jaIctQIgU5UtHvGLYKcknUAaHcle3iaUy6RyRnq+1HCFejj7e00=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":81745},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"bun":"./src/index.ts","deno":"./src/index.ts","types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"99acda39296262d517217725b66a3b1d0a981b26","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","prepublishOnly":"bun run build","build:templates":"bun run templates/build.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"useTabs":false,"tabWidth":2,"printWidth":80,"singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.5.2","description":"Simple local OAuth callback server for capturing authorization codes in CLI tools and desktop apps","directories":{},"_nodeVersion":"24.5.0","dependencies":{"open":"^10.2.0"},"_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.6.2","@types/bun":"latest","typescript":"^5.9.2"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_0.1.0_1755204863149_0.6870483432881942","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"oauth-callback","version":"0.1.1","keywords":["oauth","callback","authentication","auth","bun","oauth2","login","authorization","web","handler","security","redirect","token","javascript","typescript","rfc6749","rfc7591","openid","oidc","client","server","middleware","express","fastify","session","jwt","bearer","access-token","refresh-token"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@0.1.1","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://github.com/kriasoft/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"50c83937209fa28e0e6f3a33798e837e2a920a06","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-0.1.1.tgz","fileCount":19,"integrity":"sha512-x5xqYfLE3yLOG/4rywa5y9wuUnogS9wxqNXdrN3e2O8AkEfLm2R8zchVVuCdDcMieU8zcAFrBb3fW68S07ygVA==","signatures":[{"sig":"MEQCIDh2e2vCPlKIt3MEECIGsraD4YQ8Xk/CcrvlbPrqx16KAiBpRnAb8Be/WaKevC/26bZWsGC3xY/35i+tXwmhHxO+ZQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":82189},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"bun":"./src/index.ts","deno":"./src/index.ts","types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"b36c49a68ad3c1d7d49cff4bcfdc263b8fa3cd48","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","prepublishOnly":"bun run build","build:templates":"bun run templates/build.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"useTabs":false,"tabWidth":2,"printWidth":80,"singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.5.2","description":"Simple local OAuth callback server for capturing authorization codes in CLI tools and desktop apps","directories":{},"_nodeVersion":"24.5.0","dependencies":{"open":"^10.2.0"},"_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.6.2","@types/bun":"latest","typescript":"^5.9.2"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_0.1.1_1755205456593_0.07189673008520092","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"oauth-callback","version":"0.1.2","keywords":["oauth","callback","authentication","auth","bun","oauth2","login","authorization","web","handler","security","redirect","token","javascript","typescript","rfc6749","rfc7591","openid","oidc","client","server","middleware","express","fastify","session","jwt","bearer","access-token","refresh-token"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@0.1.2","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://github.com/kriasoft/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"7da57e14edb4b57eacbd3a58d44198f8aa9ce5b1","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-0.1.2.tgz","fileCount":19,"integrity":"sha512-Um2+JhiFeGzqYMdhtsfy6hzxy1SpwtwhImtT1cU0Eoz1hvqqz1uAVwg2ybjqICHxiDjVoV/blvVb8LA8NFcm9Q==","signatures":[{"sig":"MEQCIAyT7x5JeNP9t8EkaygOjHVYlgXyrLFI9Pv/1nOIR/nnAiBMNyUQ60cWmGSfVvGxoJkC0GhHhW1CTePCigIMyQ3Rsw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":122997},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"bun":"./src/index.ts","deno":"./src/index.ts","types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"7589a8f2cea0ad9c48fd6c22593e1cbfdc26b861","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","example:demo":"bun run examples/demo.ts","example:github":"bun run examples/github.ts","prepublishOnly":"bun run build","build:templates":"bun run templates/build.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"useTabs":false,"tabWidth":2,"printWidth":80,"singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.5.2","description":"Simple local OAuth callback server for capturing authorization codes in CLI tools and desktop apps","directories":{},"_nodeVersion":"24.5.0","dependencies":{"open":"^10.2.0"},"_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.6.2","@types/bun":"latest","typescript":"^5.9.2"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_0.1.2_1755210887333_0.3750486609410577","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"oauth-callback","version":"1.0.0","keywords":["oauth","oauth2","callback","authorization","authentication","auth","token","access-token","refresh-token","redirect","login","openid","oidc","mcp","typescript","javascript","bun","client","server","handler","security","rfc6749","rfc7591","jwt","bearer","mcp-client","web","middleware","express","fastify","session"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@1.0.0","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://github.com/kriasoft/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"7b7aa0d31a4b3e29b335a8a5a1e0a289da169199","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-1.0.0.tgz","fileCount":19,"integrity":"sha512-6Pr6WYlnsDuu1JAy07bhegZ9HXBF+6Fc1OYEHP9zFg8fTuOwJH4/XO4JxZP3gcbjif0P3vr5681BtGvSOGjXxA==","signatures":[{"sig":"MEUCIQDk3tMlF46h9wIfMhn/pUwaXdsPSQpF/ffKGwHejkdj+QIgdNhzqogB6F4CcKUaQF+PQwHNUSit4TvDkwQeZ/Gyzg4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":125258},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"bun":"./src/index.ts","deno":"./src/index.ts","types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"c6b6ed654dd2ae69da68dacd4d805b927f3842f1","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","example:demo":"bun run examples/demo.ts","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build","build:templates":"bun run templates/build.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"useTabs":false,"tabWidth":2,"printWidth":80,"singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.5.2","description":"Simple local OAuth callback server for capturing authorization codes in CLI tools and desktop apps","directories":{},"_nodeVersion":"24.5.0","dependencies":{"open":"^10.2.0"},"_hasShrinkwrap":false,"devDependencies":{"prettier":"^3.6.2","@types/bun":"latest","typescript":"^5.9.2","@modelcontextprotocol/sdk":"^1.17.3"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_1.0.0_1755250897278_0.15005284257363982","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"oauth-callback","version":"1.1.0","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@1.1.0","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://github.com/kriasoft/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"d6695937d080782256d3db391de37ab76264bfa0","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-1.1.0.tgz","fileCount":37,"integrity":"sha512-gvXAQP5UMmT8bQ/+f8/5ySVtymZA6SpsMqeDYly1gAxipliV9aKRvkiXUYVrqDNaSrqUlw7H9NU4DX0/WJYu0g==","signatures":[{"sig":"MEYCIQDJeTGAIvnQc3WK/5/09pfwbgSaaiMbd+noATudPF9ObAIhAJKqY5ct6oFSfGxTlNoWFVNwOmK3w1Mr/9tZBB/MNy4v","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":175390},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"c79ce70793f04d6ebd67fb6013399b70091c0758","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"10.8.2","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow, MCP support, and zero dependencies","directories":{},"_nodeVersion":"20.19.4","dependencies":{"open":"^10.2.0"},"_hasShrinkwrap":false,"devDependencies":{"publint":"^0.3.12","prettier":"^3.6.2","@types/bun":"^1.2.20","typescript":"^5.9.2","@modelcontextprotocol/sdk":"^1.17.3"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_1.1.0_1755378636196_0.3524407368414939","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"oauth-callback","version":"1.2.0","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@1.2.0","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://github.com/kriasoft/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"1af4a86e4b9bcb4aeb853101bbc0bea9b14d0728","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-1.2.0.tgz","fileCount":41,"integrity":"sha512-9py72vgh7lgbm79BzB91XFiKOF7IQtzesVZQLIjCnh9pR5HJft3w0mXkpbbca2jWqvgRKFMN29SFsn7vRAWVTA==","signatures":[{"sig":"MEUCIQCB/PgxXKATmVkZxb3B/9Kxoa/EGS5PR2z/ngHP6Guw1wIga/saLpVdX+AZ/aRGLFiRXZBV4027vRXGg5hRKOaElUo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":233262},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp.d.ts","default":"./dist/mcp.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"0a03dc76bc889566ebd99d8fee0373641649c00e","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && bun build ./src/mcp.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"10.8.2","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow, MCP support, and zero dependencies","directories":{},"_nodeVersion":"20.19.4","dependencies":{"open":"^10.2.0"},"_hasShrinkwrap":false,"devDependencies":{"publint":"^0.3.12","prettier":"^3.6.2","@types/bun":"^1.2.20","typescript":"^5.9.2","@modelcontextprotocol/sdk":"^1.17.3"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_1.2.0_1755384485599_0.8941565775651996","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"oauth-callback","version":"1.2.1","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@1.2.1","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"13b0e0ada597cd07609c63c78c6ad2ae9c4818b7","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-1.2.1.tgz","fileCount":41,"integrity":"sha512-EgV59C+AgoWN0Xybu7Nbq+hWloSnoueG/KncRpDxUh0kRa8iI5iEahTWC93dEwPYa3D5mf98xD06bB2DqWUHTw==","signatures":[{"sig":"MEUCIQCX1wiVd+Miq+k6+ZY13ysLFQfhHe19BMAG7pAadkHougIgKczF2zEAvTvesUvefCYNcIvGnlzYZZCXoRh1OtvUWoM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":216945},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp.d.ts","default":"./dist/mcp.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"150f30ed362f83ec6925daac78df7557d5ba36eb","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && bun build ./src/mcp.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","docs:build":"vitepress build docs","docs:preview":"vitepress preview docs","docs:publish":"bunx gh-pages -d docs/.vitepress/dist","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"10.8.2","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow, MCP support, and zero dependencies","directories":{},"_nodeVersion":"20.19.4","dependencies":{"open":"^10.2.0"},"_hasShrinkwrap":false,"devDependencies":{"mermaid":"^11.9.0","publint":"^0.3.12","prettier":"^3.6.2","vitepress":"^1.6.4","@types/bun":"^1.2.20","typescript":"^5.9.2","@types/deno":"^2.3.0","@types/node":"^24.3.0","@types/open":"^6.2.1","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/sdk":"^1.17.3"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_1.2.1_1755689871032_0.9328402838740779","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"oauth-callback","version":"1.2.2","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":"Konstantin Tarkus <koistya@kriasoft.com>","license":"MIT","_id":"oauth-callback@1.2.2","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"1b0123ebfadbc456b284360d1e4fec0370843a70","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-1.2.2.tgz","fileCount":44,"integrity":"sha512-Cn5SvmbdOvdCZ7qWOrQfhHXpzNNNuoTblQGjIooDI6hVVbL3JmToPCC2Zbsj01bkN4IwrnYf8SQrAlLnyyDZXg==","signatures":[{"sig":"MEYCIQDr3U7ue7e7ba62sfwM5yfeqqoc0k7RmCBQj8N9SigrOwIhAP0xg1HtAhFBBjATQtx6/nQAs6PlgGJVGBsj98NbG9HY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":233292},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","shasum":"1b0123ebfadbc456b284360d1e4fec0370843a70","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp.d.ts","default":"./dist/mcp.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && bun build ./src/mcp.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","docs:build":"vitepress build docs","docs:preview":"vitepress preview docs","docs:publish":"bunx gh-pages -d docs/.vitepress/dist","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"_integrity":"sha512-Cn5SvmbdOvdCZ7qWOrQfhHXpzNNNuoTblQGjIooDI6hVVbL3JmToPCC2Zbsj01bkN4IwrnYf8SQrAlLnyyDZXg==","repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"10.8.3","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow and MCP SDK integration","directories":{},"_nodeVersion":"24.3.0","dependencies":{"open":"^11.0.0"},"_hasShrinkwrap":false,"devDependencies":{"mermaid":"^11.12.2","publint":"^0.3.16","prettier":"^3.8.0","bun-types":"^1.2.20","vitepress":"^1.6.4","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^24.10.9","@types/open":"^6.2.1","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/sdk":"^1.25.2"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_1.2.2_1768669610425_0.4845395968852544","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"oauth-callback","version":"1.2.3","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":"Konstantin Tarkus <koistya@kriasoft.com>","license":"MIT","_id":"oauth-callback@1.2.3","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"197b76ba8d4e432464cfc30efa4d11448071cddd","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-1.2.3.tgz","fileCount":44,"integrity":"sha512-5f7MNUmfJyo3sFh3chx0qIKNwfERCJr6fWy24ii5GekzW+q9h4OJ3xTb2WQOaHrq+EQknTa7Z4GiPPWR6hbsKA==","signatures":[{"sig":"MEUCIQCjabBoTzyx02gZ793idVzMa/Y5m4S4Vv11lbWblJC0FgIgW7aPlb6HGT9kXIAYS7RUPn1dt+2f1YacVrVOWR8uAJk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":233529},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","shasum":"197b76ba8d4e432464cfc30efa4d11448071cddd","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp.d.ts","default":"./dist/mcp.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && bun build ./src/mcp.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","docs:build":"vitepress build docs","docs:preview":"vitepress preview docs","docs:publish":"bunx gh-pages -d docs/.vitepress/dist","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"_integrity":"sha512-5f7MNUmfJyo3sFh3chx0qIKNwfERCJr6fWy24ii5GekzW+q9h4OJ3xTb2WQOaHrq+EQknTa7Z4GiPPWR6hbsKA==","repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"10.8.3","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow and MCP SDK integration","directories":{},"_nodeVersion":"24.3.0","dependencies":{"open":"^11.0.0"},"_hasShrinkwrap":false,"devDependencies":{"mermaid":"^11.12.2","publint":"^0.3.16","prettier":"^3.8.0","bun-types":"^1.2.20","vitepress":"^1.6.4","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^24.10.9","@types/open":"^6.2.1","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/sdk":"^1.25.2"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_1.2.3_1768669925607_0.5912043149962207","host":"s3://npm-registry-packages-npm-production"}},"1.2.4":{"name":"oauth-callback","version":"1.2.4","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@1.2.4","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"2c9cba93750e17aaddd3315646fb99140f6aac5b","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-1.2.4.tgz","fileCount":44,"integrity":"sha512-GqK7R+G/QDAiEYds6qWWVQBE43umZJlivxcrMhJdK+CTecQNLDjfGRZWp31lpWfC5KWMt8ZIxXmWs6w4ugyPCA==","signatures":[{"sig":"MEYCIQDtm3guLj5Ktan8PUiO9kQN7wYKfplsEonqTZvgYudCYgIhAKC6ZCzPhYqqS6uwJ/laL9j8q7t8AWiBV1b8x0m30FcZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":233778},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp.d.ts","default":"./dist/mcp.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"966f46ca73e8c4e49f027177f4f1f2ef4b6a84bf","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && bun build ./src/mcp.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","docs:build":"vitepress build docs","test:login":"bun run scripts/test-login.ts","docs:preview":"vitepress preview docs","docs:publish":"bunx gh-pages -d docs/.vitepress/dist","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.6.2","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow and MCP SDK integration","directories":{},"_nodeVersion":"25.2.1","dependencies":{"open":"^11.0.0"},"_hasShrinkwrap":false,"devDependencies":{"mermaid":"^11.12.2","publint":"^0.3.16","prettier":"^3.8.0","bun-types":"^1.2.20","vitepress":"^1.6.4","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^24.10.9","@types/open":"^6.2.1","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/sdk":"^1.25.2"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_1.2.4_1768670878314_0.9548875017996594","host":"s3://npm-registry-packages-npm-production"}},"1.2.5":{"name":"oauth-callback","version":"1.2.5","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":"Konstantin Tarkus <koistya@kriasoft.com>","license":"MIT","_id":"oauth-callback@1.2.5","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"06b44194cd390e5f688e3f87307e3da7c7d0dd03","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-1.2.5.tgz","fileCount":44,"integrity":"sha512-xf9YpP8Ocml/+Vt+cGLWDQB+BV4BlELIjO+6QNg46l1J91j4faezBAzLxSxwzfaF4xzGpQmtuULUPO7aoigdkg==","signatures":[{"sig":"MEYCIQDzHze5yyCkpi3QKrVQ/5y6as7Ychfq/8BxMJsIzE9wRQIhAO43ECssRQEBEfZHgLHblQocsYuBoALR8qbYM+qpfdDv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":233829},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","shasum":"06b44194cd390e5f688e3f87307e3da7c7d0dd03","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp.d.ts","default":"./dist/mcp.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && bun build ./src/mcp.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","docs:build":"vitepress build docs","test:login":"bun run scripts/test-login.ts","docs:preview":"vitepress preview docs","docs:publish":"bunx gh-pages -d docs/.vitepress/dist","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"_integrity":"sha512-xf9YpP8Ocml/+Vt+cGLWDQB+BV4BlELIjO+6QNg46l1J91j4faezBAzLxSxwzfaF4xzGpQmtuULUPO7aoigdkg==","repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"10.8.3","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow and MCP SDK integration","directories":{},"_nodeVersion":"24.3.0","dependencies":{"open":"^11.0.0"},"_hasShrinkwrap":false,"devDependencies":{"mermaid":"^11.12.2","publint":"^0.3.16","prettier":"^3.8.0","bun-types":"^1.2.20","vitepress":"^1.6.4","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^24.10.9","@types/open":"^6.2.1","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/sdk":"^1.25.2"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_1.2.5_1768671888283_0.8947862590620077","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"oauth-callback","version":"2.0.0","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@2.0.0","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"de256ce1e0479800cf24d6d702d66bdfddd3da79","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-2.0.0.tgz","fileCount":44,"integrity":"sha512-xZG7t98EcFWcGQpazY2qXOMIp+EVdZQlanUSJrmFmb4/UhEXX6kCIJqIErQB/4x2FYn4LjrgApZlvF58ADE8dQ==","signatures":[{"sig":"MEUCIQDvS8K6pEBpsIIDY9V+ri0R0UibZZ8tKeLMrs2dGGZsSgIgXmDGq/IUx97WFj0BisDu08JAonNA6hqj2zIcCLozrD0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":190043},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp.d.ts","default":"./dist/mcp.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"479070ebe60711950e9ccbbf758ee6bed6f74ae9","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && bun build ./src/mcp.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","docs:build":"vitepress build docs","test:login":"bun run scripts/test-login.ts","docs:deploy":"bunx gh-pages -d docs/.vitepress/dist","docs:preview":"vitepress preview docs","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"10.8.2","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow and MCP SDK integration","directories":{},"sideEffects":false,"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"open":"^11.0.0","mermaid":"^11.12.2","publint":"^0.3.17","srcpack":"^0.1.13","prettier":"^3.8.1","bun-types":"^1.2.20","vitepress":"^2.0.0-alpha.15","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^25.0.10","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/sdk":"^1.25.3"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_2.0.0_1769276525410_0.419352110423457","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"oauth-callback","version":"2.1.0","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@2.1.0","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"49013cc2425e6646448e059610c4fecae6d1aac3","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-2.1.0.tgz","fileCount":44,"integrity":"sha512-3S+8o7nK0+WnG5agFlSka3FOxG57vLWjTeKiWCi97IFNw1gzpyYKcpqwypModLflFFuZ1ubucMFVKlaV/All2g==","signatures":[{"sig":"MEUCIGSCdGlJg78pMjF2gipW8sKjcXNAWiiwmJ7w5Zuc+v46AiEAh6onGffFbjnpAF6L3pP9w1JqQuSMtJROJfnMJqr/y7E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":238069},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp.d.ts","default":"./dist/mcp.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"30dbb3ad713a0fb667647dd6d0c107d5764d7fe8","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && bun build ./src/mcp.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","docs:build":"vitepress build docs","test:login":"bun run scripts/test-login.ts","docs:deploy":"bunx gh-pages -d docs/.vitepress/dist","docs:preview":"vitepress preview docs","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"koistya","email":"hello@tarkus.me"},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"10.8.2","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow and MCP SDK integration","directories":{},"sideEffects":false,"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"open":"^11.0.0","mermaid":"^11.12.2","publint":"^0.3.17","srcpack":"^0.1.13","prettier":"^3.8.1","bun-types":"^1.2.20","vitepress":"^2.0.0-alpha.15","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^25.0.10","vitepress-plugin-llms":"^1.10.0","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/sdk":"^1.25.3"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_2.1.0_1769286361828_0.42658127711552574","host":"s3://npm-registry-packages-npm-production"}},"2.1.1":{"name":"oauth-callback","version":"2.1.1","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@2.1.1","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"4d265c5dd8560b9489ac46c4748d6bc12bea0443","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-2.1.1.tgz","fileCount":44,"integrity":"sha512-L/yK3K7VFwmj19pAXeLLFyruxLWCNhyAR+Tsg5B29NoYpIBn9tJoGf1S5LqXIn4XNy9INgQGrZKgbXZhk0o3KA==","signatures":[{"sig":"MEQCIHkiHQjdkpz91uYoHCdynW30Tdpx0D167+kZD+D6dmAPAiBY9KgJizHqO5+A49JfwePilpLNGRgb5tyZFMCmHlLCyA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@2.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":238555},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp.d.ts","default":"./dist/mcp.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"ee6964c131a4ef8a9fbff220a406c7709e2a6ab3","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && bun build ./src/mcp.ts --outdir=./dist --target=node && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","docs:build":"vitepress build docs","test:login":"bun run scripts/test-login.ts","docs:deploy":"bunx gh-pages -d docs/.vitepress/dist","docs:preview":"vitepress preview docs","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0740cad3-4ceb-4ad3-a337-d99689d229e8"}},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.6.2","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow and MCP SDK integration","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"open":"^11.0.0","mermaid":"^11.12.2","publint":"^0.3.17","srcpack":"^0.1.13","prettier":"^3.8.1","bun-types":"^1.2.20","vitepress":"^2.0.0-alpha.15","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^25.0.10","vitepress-plugin-llms":"^1.10.0","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/sdk":"^1.25.3"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_2.1.1_1769291026467_0.5466547411031828","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"oauth-callback","version":"2.2.0","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@2.2.0","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"e564d0ef37062e883ab83cc1caca47b98d83ab9b","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-2.2.0.tgz","fileCount":44,"integrity":"sha512-ydyRl3cYH9x6BnJC2sjqu1uHUUYCmHnDweqLcT5cxSdDoIIBRunwUaJrFqdsTkiVZrLi1xwLHfRalBVAVZJ6pQ==","signatures":[{"sig":"MEUCIQDhqfir5OnpE98KFRZwGUYoFtzi23rG8nypLNiKBdy8vgIgO9o8QgGC3G6nzJ+MBWleB/LhMIwdGmUfjAt3MkPZdNo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@2.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":409289},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp.d.ts","default":"./dist/mcp.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"aa064398d2117abc0bf515c990f9e95d68157596","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && bun build ./src/mcp.ts --outdir=./dist --target=node --external=@modelcontextprotocol/sdk && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","docs:build":"vitepress build docs","test:login":"bun run scripts/test-login.ts","docs:deploy":"bunx gh-pages -d docs/.vitepress/dist","docs:preview":"vitepress preview docs","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0740cad3-4ceb-4ad3-a337-d99689d229e8"}},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.6.2","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow and MCP SDK integration","directories":{},"sideEffects":false,"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"open":"^11.0.0","mermaid":"^11.12.2","publint":"^0.3.17","srcpack":"^0.1.13","prettier":"^3.8.1","bun-types":"^1.2.20","vitepress":"^2.0.0-alpha.15","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^25.0.10","vitepress-plugin-llms":"^1.10.0","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/sdk":"^1.25.3"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_2.2.0_1769357967961_0.6473420251739692","host":"s3://npm-registry-packages-npm-production"}},"2.2.1":{"name":"oauth-callback","version":"2.2.1","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@2.2.1","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"8357a9e5c789b332738d97d0340cf2b51bc73b32","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-2.2.1.tgz","fileCount":44,"integrity":"sha512-ZQamYzkXTvL7X2tQXyxjSvFwVXYhcPDf5/rzRPsb61DRRovLF2CSBbBDJqg6ehUAFnHMEFBGGh3nuITQFJAxOg==","signatures":[{"sig":"MEUCIQDI4O2eVzC28hlb9EhGHPWOxNP403fZ9onYnf/ZXUrlDwIgdRo1zlqfRUuL8DRHGeqyZaJXNKGHA/Mo9ZcDs/Cc8WQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCeVg/4GMesr3ILJ7wH9DVhzBg4YDpvtMvJPuVrRPLL/AIhAM/QEZRM1K98taDBKs9/uQ2lKkujqp/3d1n6jXuHIPCP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@2.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":445035},"type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18.2"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp.d.ts","default":"./dist/mcp.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"41ca71839d82f71c3cbdba9c22cab2115d50248d","scripts":{"test":"bun test","build":"bun run build:templates && bun build ./src/index.ts --outdir=./dist --target=node && bun build ./src/mcp.ts --outdir=./dist --target=node --external=@modelcontextprotocol/sdk && tsc --declaration --emitDeclarationOnly --outDir ./dist","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run lint:package","typecheck":"bun tsc -p tsconfig.json --noEmit","docs:build":"vitepress build docs","test:login":"bun run scripts/test-login.ts","docs:deploy":"bunx gh-pages -d docs/.vitepress/dist","docs:preview":"vitepress preview docs","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run build && bun run lint:package","build:templates":"bun run templates/build.ts","example:mcp-auth":"bun run examples/mcp-auth.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0740cad3-4ceb-4ad3-a337-d99689d229e8"}},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.19.0","description":"Lightweight OAuth 2.0 callback handler for Node.js, Deno, and Bun with built-in browser flow and MCP SDK integration","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","_hasShrinkwrap":false,"devDependencies":{"open":"^11.0.0","mermaid":"^11.12.2","publint":"^0.3.17","srcpack":"^1.0.0","prettier":"^3.8.1","bun-types":"^1.2.20","vitepress":"^2.0.0-alpha.15","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^25.0.10","vitepress-plugin-llms":"^1.10.0","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/sdk":"^1.25.3"},"peerDependencies":{"typescript":">=5 <6","@modelcontextprotocol/sdk":">=1.17.0 <2"},"peerDependenciesMeta":{"typescript":{"optional":true},"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_2.2.1_1790021679354_0.3499340095614123","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"oauth-callback","version":"3.0.0","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@3.0.0","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"9220b0b99ed3d92979312e924e7782a3dbc67ec4","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-3.0.0.tgz","fileCount":16,"integrity":"sha512-GH9ZK3Mx3FdAwY2NixBGapZ0Ml0vvMWb3vMYx+zPuvtELuuVV2i3uPH+ruuFhOPcMcuzgZGxtkLKipFq615+RA==","signatures":[{"sig":"MEUCIQDRYv/ZjjECXMLdhDqc/eCNNKbG9IjE2MLT/zDhoWsXegIgWr4kY27zmWYzofPBABH9bOJ+F2N8HWkBHeDwRZYDAbE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIAgN3d0lZ7HLa5QeICZEC2l3C/w9xsoHaPltdNTwFjeZAiA2HUNjfNHxVgZ4QqzIyktNCdlIUr9P7AgLbrCum5c1qA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":99589},"type":"module","types":"dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp/index.d.ts","default":"./dist/mcp/index.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"10b1a8343913ac10e9fb3e6016c17451b7b86f3b","scripts":{"test":"bun test test","build":"bun run scripts/build.ts","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run build && bun run lint:package","typecheck":"tsc -p tsconfig.json","docs:build":"vitepress build docs","docs:deploy":"bunx gh-pages -d docs/.vitepress/dist","docs:preview":"vitepress preview docs","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","test:runtimes":"bun run build && node test/runtime-smoke.mjs && deno run --allow-net --allow-read --allow-write --allow-env=TMPDIR,TMP,TEMP test/runtime-smoke.mjs && bun test/runtime-smoke.mjs","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run validate"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0740cad3-4ceb-4ad3-a337-d99689d229e8"}},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.19.0","description":"Capture OAuth 2.0 authorization codes on a loopback redirect URI in Node.js, Deno and Bun, with a browser authorization provider for the MCP SDK","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"devDependencies":{"open":"^11.0.4","mermaid":"^11.12.2","publint":"^0.3.17","srcpack":"^1.0.0","prettier":"^3.8.1","bun-types":"^1.2.20","vitepress":"^2.0.0-alpha.15","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^25.0.10","vitepress-plugin-llms":"^1.10.0","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/client":"^2.1","@modelcontextprotocol/server":"^2.1"},"peerDependencies":{"@modelcontextprotocol/client":"^2.1.0"},"peerDependenciesMeta":{"@modelcontextprotocol/client":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_3.0.0_1790529690859_0.32307625805982143","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"name":"oauth-callback","version":"3.1.0","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@3.1.0","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"8441eb454e776d2f81b93d6fc4b68ea15bf64c32","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-3.1.0.tgz","fileCount":16,"integrity":"sha512-h9Ayi7sPeorNuscow4i58g/DV25PdnF8YRrtzzf0QSbxBnZwnXYh+ryjxjRTr90wEKMGVi2bl8gPUgP72BPc+A==","signatures":[{"sig":"MEYCIQDg/Jn81nXKdB6Sw5pa/pWg0JRRxRSIeWzzOhZiQPJ5igIhAIzdgtjjV1i/EOWyFPU5vP2xtjV8n3UOYkdabUoIt1Q1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDtdwkQfpudbCnJ0X0NkaeKnYiP5p0O+g9SE5qp9DmpVQIgWO8DwlXJffZC5BPyAgV/qeeUP+FSQ1nfq7QSskKyr7E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@3.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":101905},"type":"module","types":"dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp/index.d.ts","default":"./dist/mcp/index.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"5bddbcc74128939a80f8e40a3f8008cc890a62a3","scripts":{"test":"bun test test","build":"bun run scripts/build.ts","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run build && bun run lint:package","typecheck":"tsc -p tsconfig.json","docs:build":"vitepress build docs","docs:preview":"vitepress preview docs","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","test:runtimes":"bun run build && node test/runtime-smoke.mjs && deno run --allow-net --allow-read --allow-write --allow-env=TMPDIR,TMP,TEMP test/runtime-smoke.mjs && bun test/runtime-smoke.mjs","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run validate"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"0740cad3-4ceb-4ad3-a337-d99689d229e8"}},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.19.0","description":"Capture OAuth 2.0 authorization codes on a loopback redirect URI in Node.js, Deno and Bun, with a browser authorization provider for the MCP SDK","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"devDependencies":{"open":"^11.0.4","mermaid":"^11.12.2","publint":"^0.3.17","srcpack":"^1.0.0","prettier":"^3.8.1","bun-types":"^1.2.20","vitepress":"^2.0.0-alpha.15","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^25.0.10","vitepress-plugin-llms":"^1.10.0","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/client":"^2.2","@modelcontextprotocol/server":"^2.2"},"peerDependencies":{"@modelcontextprotocol/client":"^2.2.0"},"peerDependenciesMeta":{"@modelcontextprotocol/client":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_3.1.0_1790892453992_0.2515499304615969","host":"s3://npm-registry-packages-npm-production"}},"3.1.1":{"name":"oauth-callback","version":"3.1.1","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","_id":"oauth-callback@3.1.1","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"homepage":"https://kriasoft.com/oauth-callback","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"4a2f798fbc7f6c8cf3a6a2c729128f17b4d4bc11","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-3.1.1.tgz","fileCount":16,"integrity":"sha512-M/hJb21PDjwHQol0P2uJYJJ266XPNjbEpbujeG/5cbOnqABt9y7pOXgKHDdI2rn6JOl6cia2g/r1CpcOzitlfg==","signatures":[{"sig":"MEUCIQC5wSFrvnWrtyNiKw0e72Ye1BDaC0pt5ZDe5arAEI4U1QIgM8bNMrieX0zwYIDaH50y4GTos69lu2WAQT6BLDJnV0M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIGWk1xrQ4BR7tslmey+OzfKp6FAq0LnsUmL/I84gNBIXAiBKQbjQ2EELn9xj4BCv6/YghDS/vefjycIsrFW5CMSn3A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@3.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":102520},"type":"module","types":"dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp/index.d.ts","default":"./dist/mcp/index.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"1de21f593a098c8c16e75b3105f770ba17a76d9c","scripts":{"test":"bun test test","build":"bun run scripts/build.ts","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run build && bun run lint:package","typecheck":"tsc -p tsconfig.json","docs:build":"vitepress build docs","docs:preview":"vitepress preview docs","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","test:runtimes":"bun run build && node test/runtime-smoke.mjs && deno run --allow-net --allow-read --allow-write --allow-env=TMPDIR,TMP,TEMP test/runtime-smoke.mjs && bun test/runtime-smoke.mjs","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run validate"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"0740cad3-4ceb-4ad3-a337-d99689d229e8"}},"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.19.0","description":"Capture OAuth 2.0 authorization codes on a loopback redirect URI in Node.js, Deno and Bun, with a browser authorization provider for the MCP SDK","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"devDependencies":{"open":"^11.0.4","mermaid":"^11.12.2","publint":"^0.3.17","srcpack":"^1.0.0","prettier":"^3.8.1","bun-types":"^1.2.20","vitepress":"^2.0.0-alpha.15","@types/bun":"^1.3.6","typescript":"^5.9.3","@types/deno":"^2.5.0","@types/node":"^25.0.10","vitepress-plugin-llms":"^1.10.0","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/client":"^2.2","@modelcontextprotocol/server":"^2.2"},"peerDependencies":{"@modelcontextprotocol/client":"^2.2.0"},"peerDependenciesMeta":{"@modelcontextprotocol/client":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/oauth-callback_3.1.1_1791290597668_0.3441323006808401","host":"s3://npm-registry-packages-npm-production"}},"3.2.0":{"_id":"oauth-callback@3.2.0","bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"dist":{"shasum":"f3d1b0b0e3843858732f8811bf8e5cfddcb5e54a","tarball":"https://registry.npmjs.org/oauth-callback/-/oauth-callback-3.2.0.tgz","fileCount":17,"integrity":"sha512-oAAdTbMU9NjHTcy2Xl7JoxftjOba6HfmRhJycO4PGiVcGj4OPoY40QeK1C8jpcpiHr1zxdNaRFBCUvv4C++5qw==","signatures":[{"sig":"MEUCIQCdzFC+v12GFCZMU4c66IZ8+hs8T3sGd3OuY8K/UGOqXwIgUtEwCbA+7L7pyngZJnED5RahKKIKXNghbZxgY/zVshk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCUNfEar+dqwgUh5QhiPZYWiTl7WtAXvl5EFjZGOl4SiwIgG0vmxWtbC4YPVcPifdxfa5YiDxwsUyEAHi845t4lGFM="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oauth-callback@3.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":136830},"name":"oauth-callback","type":"module","types":"dist/index.d.ts","author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./mcp":{"types":"./dist/mcp/index.d.ts","default":"./dist/mcp/index.js"},"./package.json":"./package.json"},"funding":{"url":"https://github.com/sponsors/koistya","type":"github"},"gitHead":"183711957d5017e54bd83fb232dc731b01e55cc3","license":"MIT","scripts":{"test":"bun test test","build":"bun run scripts/build.ts","clean":"rm -rf dist","format":"bun prettier --write .","docs:dev":"vitepress dev docs","validate":"bun run format:check && bun run typecheck && bun run test && bun run build && bun run lint:package","typecheck":"tsc -p tsconfig.json","docs:build":"vitepress build docs","docs:preview":"vitepress preview docs","example:demo":"bun run examples/demo.ts","format:check":"bun prettier --check .","lint:package":"publint","test:runtimes":"bun run build && node test/runtime-smoke.mjs && deno run --allow-net --allow-read --allow-write --allow-env=TMPDIR,TMP,TEMP test/runtime-smoke.mjs && bun test/runtime-smoke.mjs","example:github":"bun run examples/github.ts","example:notion":"bun run examples/notion.ts","prepublishOnly":"bun run validate"},"version":"3.2.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"0740cad3-4ceb-4ad3-a337-d99689d229e8"}},"homepage":"https://kriasoft.com/oauth-callback","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"prettier":{"semi":true,"tabWidth":2,"endOfLine":"lf","singleQuote":false,"trailingComma":"all"},"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"_npmVersion":"11.19.1","description":"Capture OAuth 2.0 authorization codes on a loopback redirect URI in Node.js, Deno and Bun, with a browser authorization provider for the MCP SDK","directories":{},"maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"sideEffects":false,"_nodeVersion":"24.22.1","_hasShrinkwrap":false,"devDependencies":{"open":"^11.0.4","mermaid":"^12.2.0","publint":"^0.3.25","srcpack":"^1.0.0","prettier":"^3.9.10","bun-types":"^1.4.4","vitepress":"^2.0.0-alpha.21","@types/bun":"^1.4.4","typescript":"^7.0.2","@types/deno":"^2.7.0","@types/node":"^22.20.5","vitepress-plugin-llms":"^1.14.0","vitepress-plugin-mermaid":"^2.0.17","@modelcontextprotocol/client":"^2.4","@modelcontextprotocol/server":"^2.4"},"peerDependencies":{"@modelcontextprotocol/client":"^2.3.0"},"peerDependenciesMeta":{"@modelcontextprotocol/client":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/oauth-callback_3.2.0_1793542972089_0.34325582935632126"}}},"time":{"created":"2025-08-14T14:46:53.093Z","modified":"2026-11-01T14:22:52.458Z","0.0.1":"2025-08-14T14:46:53.261Z","0.1.0":"2025-08-14T20:54:23.327Z","0.1.1":"2025-08-14T21:04:16.769Z","0.1.2":"2025-08-14T22:34:47.522Z","1.0.0":"2025-08-15T09:41:37.465Z","1.1.0":"2025-08-16T21:10:36.367Z","1.2.0":"2025-08-16T22:48:05.805Z","1.2.1":"2025-08-20T11:37:51.255Z","1.2.2":"2026-01-17T17:06:50.577Z","1.2.3":"2026-01-17T17:12:05.753Z","1.2.4":"2026-01-17T17:27:58.509Z","1.2.5":"2026-01-17T17:44:48.438Z","2.0.0":"2026-01-24T17:42:05.574Z","2.1.0":"2026-01-24T20:26:02.051Z","2.1.1":"2026-01-24T21:43:46.669Z","2.2.0":"2026-01-25T16:19:28.112Z","2.2.1":"2026-09-21T20:14:39.458Z","3.0.0":"2026-09-27T17:21:30.935Z","3.1.0":"2026-10-01T22:07:34.078Z","3.1.1":"2026-10-06T12:43:17.755Z","3.2.0":"2026-11-01T14:22:52.168Z"},"bugs":{"url":"https://github.com/kriasoft/oauth-callback/issues"},"author":{"name":"Konstantin Tarkus","email":"koistya@kriasoft.com"},"license":"MIT","homepage":"https://kriasoft.com/oauth-callback","keywords":["oauth","oauth2","callback","authorization-code","pkce","authentication","mcp","model-context-protocol","dynamic-client-registration","localhost","cli","cli-tool","desktop-app","typescript","node","deno","bun","rfc6749","rfc7636","rfc8252","rfc7591","token","refresh-token","openid","oidc"],"repository":{"url":"git+https://github.com/kriasoft/oauth-callback.git","type":"git"},"description":"Capture OAuth 2.0 authorization codes on a loopback redirect URI in Node.js, Deno and Bun, with a browser authorization provider for the MCP SDK","maintainers":[{"name":"koistya","email":"hello@tarkus.me"}],"readme":"# OAuth Callback\n\n<a href=\"https://www.npmjs.com/package/oauth-callback\"><img src=\"https://img.shields.io/npm/v/oauth-callback?label=npm\" height=\"20\"></a>\n<a href=\"https://www.npmjs.com/package/oauth-callback\"><img src=\"https://img.shields.io/npm/dm/oauth-callback\" height=\"20\"></a>\n<a href=\"https://kriasoft.com/oauth-callback/\"><img src=\"https://img.shields.io/badge/Docs-007ec6\" height=\"20\"></a>\n<a href=\"https://github.com/sponsors/koistya\"><img src=\"https://img.shields.io/badge/-GitHub-%23555.svg?logo=github-sponsors\" height=\"20\"></a>\n<a href=\"https://discord.gg/bSsv7XM\"><img src=\"https://img.shields.io/discord/643523529131950086?label=Chat\" height=\"20\"></a>\n<a href=\"https://github.com/kriasoft/oauth-callback/stargazers\"><img src=\"https://img.shields.io/github/stars/kriasoft/oauth-callback.svg?style=social&label=Star&maxAge=3600\" height=\"20\"></a>\n<a href=\"https://x.com/koistya\"><img src=\"https://img.shields.io/badge/Follow-%40koistya-black?logo=x&style=social\" height=\"20\"></a>\n\nTurn a browser authorization into a validated OAuth 2.0 authorization code on a loopback redirect URI, in Node.js, Deno and Bun. For CLI tools and desktop apps, with a one-line browser authorization provider for the MCP SDK.\n\n<div align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/kriasoft/oauth-callback/main/examples/notion.gif\" alt=\"OAuth Callback Demo\" width=\"100%\" style=\"max-width: 800px; height: auto;\">\n</div>\n\n## Features\n\n- 🚀 **Node.js 22+, Deno 2 and Bun** — one `node:http` listener everywhere\n- 🔌 **Ephemeral loopback ports** (RFC 8252) — the default for `getAuthCode()`: no port collisions, no port config\n- 🛡️ **Secure by default** — `state` on every flow, strict callback and URL validation, neutral pages with security headers\n- 🤖 **MCP SDK integration** — `browserAuth().connect(client)` handles the whole browser flow\n- ⚡ **Zero runtime dependencies** — the browser launcher is bundled and loaded lazily\n- 🎯 **Small, typed API** — one function, one error class\n\n## Installation\n\n```bash\nbun add oauth-callback   # or: npm install oauth-callback\n\n# for oauth-callback/mcp, also the MCP SDK (optional peer dependency)\nbun add @modelcontextprotocol/client\n```\n\n## Quick Start\n\n```ts\nimport { getAuthCode } from \"oauth-callback\";\n\nconst { code, redirectUri } = await getAuthCode(() => {\n  const url = new URL(\"https://github.com/login/oauth/authorize\");\n  url.searchParams.set(\"client_id\", CLIENT_ID);\n  return url; // redirect_uri and state are appended\n});\n\nawait exchangeCode({ code, redirectUri }); // your token request\n```\n\n`getAuthCode()` binds `http://127.0.0.1:<free port>/callback`, calls your builder with that redirect URI and a fresh `state`, opens the system browser, and resolves with the code once a callback with the right `state` arrives. The listener is always closed afterwards.\n\n## Usage\n\n### Builder or prebuilt URL\n\n```ts\n// Builder (recommended): the library picks the port and the state\nawait getAuthCode(({ redirectUri, state, signal }) =>\n  buildUrl(redirectUri, state),\n);\n\n// Prebuilt URL: listens on its redirect_uri, appends state if missing\nawait getAuthCode(\n  \"https://auth.example.com/authorize?client_id=app&response_type=code&redirect_uri=http%3A%2F%2F127.0.0.1%3A8765%2Fcallback\",\n);\n\n// Prebuilt URL without redirect_uri (the provider uses its registered one)\nawait getAuthCode(authUrl, { redirectUri: \"http://127.0.0.1:8765/callback\" });\n```\n\nUse the builder for PAR/JAR: put the provided `redirectUri` and `state` into the pushed request and return the short URL. `signal` aborts with the flow, so pass it to `fetch`.\n\n```ts\nconst { code, redirectUri } = await getAuthCode(\n  async ({ redirectUri, state, signal }) => {\n    const res = await fetch(PAR_ENDPOINT, {\n      method: \"POST\",\n      body: new URLSearchParams({\n        client_id,\n        response_type: \"code\",\n        redirect_uri: redirectUri,\n        state,\n        code_challenge,\n        code_challenge_method: \"S256\",\n      }),\n      signal,\n    });\n    const { request_uri } = await res.json();\n    return `${AUTHORIZE}?client_id=${client_id}&request_uri=${encodeURIComponent(request_uri)}`;\n  },\n);\n```\n\n### Options\n\n```ts\nawait getAuthCode(build, {\n  redirectUri: \"http://127.0.0.1:8765/callback\", // default http://127.0.0.1:0/callback (port 0 = free port)\n  launch: (url) => console.log(`Open ${url}`), // default: system browser\n  timeout: 120_000, // ms, default 300_000\n  signal: controller.signal,\n  successHtml: \"<h1>Done — back to the terminal</h1>\",\n  errorHtml: \"<h1>Authorization failed</h1>\",\n});\n```\n\n- **`launch`** receives the final URL. Use it for headless/SSH sessions, QR codes, webviews or tests. Its return value is ignored; if it throws or rejects, the flow fails with that error.\n- **`redirectUri`** must be `http:` on `127.0.0.1`, `[::1]` or `localhost`, without `state`, `code`, `error*` or `iss` in its query. The result's `redirectUri` is the exact string, never re-serialized (with a builder, the one the builder got): when the authorization request carried `redirect_uri`, pass it verbatim to your token request.\n- **Pages** never show callback data. `successHtml`/`errorHtml` are served as-is.\n\n### Errors\n\n```ts\nimport { getAuthCode, OAuthCallbackError } from \"oauth-callback\";\n\ntry {\n  const { code } = await getAuthCode(build, { signal });\n} catch (error) {\n  if (error instanceof OAuthCallbackError) {\n    error.error; // e.g. \"access_denied\"\n    error.description; // provider text, untrusted\n    error.message; // Authorization failed: \"access_denied\" (safe to log)\n  } else if (error instanceof DOMException && error.name === \"TimeoutError\") {\n    // no callback within `timeout`\n  } else if (signal.aborted) {\n    // cancelled: `error` is signal.reason\n  }\n}\n```\n\nInvalid options and unsafe or unusable authorization URLs (`javascript:`, remote `http:`, `response_type` other than `code`, `response_mode` other than `query`, both `request` and `request_uri`, …) throw `TypeError`/`RangeError` before the browser opens (options and prebuilt URLs before anything binds).\n\n## MCP SDK\n\n```ts\nimport { Client, UnauthorizedError } from \"@modelcontextprotocol/client\";\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport { browserAuth, fileStore } from \"oauth-callback/mcp\";\n\nconst auth = browserAuth({\n  serverUrl: \"https://mcp.notion.com/mcp\",\n  redirectUri: \"http://127.0.0.1:8765/callback\",\n  clientName: \"Acme CLI\",\n  store: fileStore(join(homedir(), \".config/acme/notion.json\")),\n});\n\nconst client = new Client({ name: \"acme\", version: \"1.0.0\" });\nawait auth.connect(client); // opens the browser if needed; resolves once connected\n```\n\nThe MCP SDK does the OAuth work (discovery, dynamic client registration, PKCE, token exchange, refresh, issuer checks). `browserAuth()` adds the browser, the loopback listener and credential storage. A second run reuses stored tokens without opening the browser.\n\n**Step-up** (the server asks for more scope mid-session):\n\n```ts\ntry {\n  await client.callTool(request);\n} catch (error) {\n  if (!(error instanceof UnauthorizedError)) throw error;\n  await auth.connect(client); // completes the pending authorization\n  await client.callTool(request);\n}\n```\n\n**Options:** `serverUrl`, `redirectUri` (fixed port; DCR registers it; give providers that may authorize at the same time their own port), either `clientName` (for DCR, optionally with a CIMD `clientMetadataUrl`) or `clientInformation` (pre-registered client with its `issuer`), `clientMetadata` (e.g. `{ scope }`), `store` (default: memory), `launch`, `timeout`, `successHtml`, `errorHtml`.\n\n**Custom transports:** pass `auth` as the transport's `authProvider`; on `UnauthorizedError`, call `await auth.completeAuthorization(transport)`, close that transport, and reconnect with a new one. Only the transport that started a flow gets `UnauthorizedError`; another one gets `An MCP authorization is already in progress`. Always call `completeAuthorization()` after that `UnauthorizedError`: the flow stays pending until it does, even if it failed. Run OAuth work on caller-created transports one attempt at a time; `connect()` handles concurrency for you.\n\n**Storage:** a `CredentialStore` is two methods over an opaque string, so a keychain store is four lines:\n\n```ts\nconst store: CredentialStore = {\n  load: () => keychain.get(name),\n  save: (v) =>\n    v === undefined ? keychain.delete(name) : keychain.set(name, v),\n};\n```\n\nUse one store per MCP server. To sign out, close the client, then clear the credentials: `await client.close(); await auth.invalidateCredentials(\"all\")`.\n\n## Security\n\n- Every flow has a `state`; only a callback with exactly that `state` and an unambiguous `code` or `error` completes it. Anything else is refused (400, or 404/405 for a wrong path or method) and the flow keeps waiting.\n- The listener binds loopback only and closes when the flow ends.\n- Callback pages never render callback data and send `Content-Security-Policy`, `Cache-Control: no-store`, `Referrer-Policy: no-referrer` and `X-Content-Type-Options: nosniff`.\n- `error_description` and `error_uri` are provider text: treat them as untrusted. `OAuthCallbackError.message` carries only the escaped `error` code. In `/mcp`, the SDK checks `iss` before trusting error callbacks.\n- `fileStore()` writes atomically with owner-only permissions (0600) on POSIX. For production, prefer the OS keychain.\n\n## Runtimes\n\n- **Node.js** 22+\n- **Bun** 1.2+\n- **Deno** 2: `--allow-net` (listener), `--allow-run` and `--allow-env` (default launcher), `--allow-read`/`--allow-write` (`fileStore`)\n\nThese cover `getAuthCode()` and `fileStore()`, which CI smoke-tests on each minimum version. `browserAuth()` additionally depends on the runtime support of `@modelcontextprotocol/client`.\n\n## Examples\n\n```bash\nbun run example:demo     # mock authorization server, no credentials needed\nbun run example:github   # GitHub OAuth App (GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET)\nbun run example:notion   # Notion MCP server with dynamic client registration\n```\n\n## Upgrading from v2\n\nSee the [migration guide](docs/migration-v3.md).\n\n## Development\n\n```bash\nbun install\nbun run test            # unit + MCP e2e tests\nbun run test:runtimes   # smoke test of the build on Node, Deno and Bun\nbun run build\nbun run docs:dev\n```\n\n## Contributing\n\nContributions are welcome! See [CONTRIBUTING.md](.github/CONTRIBUTING.md) for setup instructions.\n\n**Maintainers wanted** — we're looking for people to help maintain this project. If interested, reach out on [Discord](https://discord.gg/bSsv7XM) or open an issue.\n\n## License\n\nThis project is released under the MIT License. Feel free to use it in your projects, modify it to suit your needs, and share it with others. We believe in open source and hope this tool makes OAuth integration easier for everyone!\n\n## Related Projects\n\n- [**MCP Client Generator**](https://github.com/kriasoft/mcp-client-gen) - Generate TypeScript clients from MCP server specifications. Perfect companion for building MCP-enabled applications with OAuth support ([npm](https://www.npmjs.com/package/mcp-client-gen)).\n- [**React Starter Kit**](https://github.com/kriasoft/react-starter-kit) - Full-stack React application template with authentication, including OAuth integration examples.\n\n## Backers\n\nSupport this project by becoming a backer. Your logo will show up here with a link to your website.\n\n<a href=\"https://reactstarter.com/b/1\"><img src=\"https://reactstarter.com/b/1.png\" height=\"60\" /></a>&nbsp;&nbsp;<a href=\"https://reactstarter.com/b/2\"><img src=\"https://reactstarter.com/b/2.png\" height=\"60\" /></a>&nbsp;&nbsp;<a href=\"https://reactstarter.com/b/3\"><img src=\"https://reactstarter.com/b/3.png\" height=\"60\" /></a>&nbsp;&nbsp;<a href=\"https://reactstarter.com/b/4\"><img src=\"https://reactstarter.com/b/4.png\" height=\"60\" /></a>&nbsp;&nbsp;<a href=\"https://reactstarter.com/b/5\"><img src=\"https://reactstarter.com/b/5.png\" height=\"60\" /></a>&nbsp;&nbsp;<a href=\"https://reactstarter.com/b/6\"><img src=\"https://reactstarter.com/b/6.png\" height=\"60\" /></a>&nbsp;&nbsp;<a href=\"https://reactstarter.com/b/7\"><img src=\"https://reactstarter.com/b/7.png\" height=\"60\" /></a>&nbsp;&nbsp;<a href=\"https://reactstarter.com/b/8\"><img src=\"https://reactstarter.com/b/8.png\" height=\"60\" /></a>\n\n## Support\n\nFound a bug or have a question? Please open an issue on the [GitHub issue tracker](https://github.com/kriasoft/oauth-callback/issues) and we'll be happy to help. If this project saves you time and you'd like to support its continued development, consider [becoming a sponsor](https://github.com/sponsors/koistya). Every bit of support helps maintain and improve this tool for the community. Thank you!\n","readmeFilename":"README.md"}