{"name":"@vercel/oidc","version":"3.0.0","license":"Apache-2.0","_id":"@vercel/oidc@3.0.0","maintainers":[{"name":"matheuss","email":"matheus.frndes@gmail.com"},{"name":"chriswdmr","email":"github.wolle404@gmail.com"},{"name":"nick.tracey","email":"nick.tracey@vercel.com"},{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"quietshu","email":"g@shud.in"},{"name":"ijjk","email":"jj@jjsweb.site"},{"name":"zeit-bot","email":"team@zeit.co"}],"homepage":"https://vercel.com","bugs":{"url":"https://github.com/vercel/vercel/issues"},"dist":{"shasum":"5f2f6fbd449d09f6de8393778b89c11964a722cc","tarball":"http://registry-npm.ywwl.com/@vercel/oidc/download/@vercel/oidc-3.0.0.tgz","fileCount":21,"integrity":"sha512-XOoUcf/1VfGArUAfq0ELxk6TD7l4jGcrOsWjQibj4wYM74uNihzZ9gA46ywWegoqKWWdph4y5CKxGI9823deoA==","signatures":[{"sig":"MEYCIQDlthi30GBBSJbm3aKdp81H+Sbnhmw+Y31H04GW0PmsowIhAP3+f0I2viDrzLXrSRRNoWZFQGaF+LRgPAQF4M7JL54g","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@vercel%2foidc@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":42700,"size":10588,"noattachment":false,"key":"/@vercel/oidc/-/@vercel/oidc-3.0.0.tgz"},"_from":"file:vercel-oidc-3.0.0.tgz","types":"./dist/index.d.ts","engines":{"node":">= 20"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"test":"vitest","build":"pnpm run build:code && pnpm run build:docs","pretest":"pnpm run build:code","build:code":"node ../../utils/build.mjs","build:docs":"typedoc && prettier --write docs/**/*.md docs/*.md"},"_npmUser":{"name":"vercel-release-bot","email":"infra+release@vercel.com"},"_resolved":"/tmp/7c50736fcc966712bd327e7904eeeba0/vercel-oidc-3.0.0.tgz","_integrity":"sha512-XOoUcf/1VfGArUAfq0ELxk6TD7l4jGcrOsWjQibj4wYM74uNihzZ9gA46ywWegoqKWWdph4y5CKxGI9823deoA==","repository":{"url":"git+https://github.com/vercel/vercel.git","type":"git","directory":"packages/oidc"},"_npmVersion":"9.9.4","description":"Runtime OIDC helpers intended for use with Vercel Functions","directories":{},"_nodeVersion":"22.19.0","dependencies":{"ms":"2.1.3","@types/ms":"2.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"2.0.1","typedoc":"0.24.6","tinyspawn":"1.3.1","typescript":"4.9.5","typedoc-plugin-markdown":"4.1.2","typedoc-plugin-mdn-links":"3.2.3"},"peerDependenciesMeta":{},"_npmOperationalInternal":{"tmp":"tmp/oidc_3.0.0_1756845901188_0.23477543521988342","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@vercel/oidc`\n\nRuntime OIDC helper methods intended to be used with your Vercel Functions\n\n## Usage\n\n### Getting an OIDC Token\n\n```typescript\nimport { getVercelOidcToken } from '@vercel/oidc';\n\n// Get token using project.json configuration\nconst token = await getVercelOidcToken();\n\n// Get token with explicit project and team (supports both IDs and slugs)\nconst token = await getVercelOidcToken({\n  project: 'my-project', // or 'prj_abc123'\n  team: 'my-team', // or 'team_xyz789'\n});\n\n// Get token with expiration buffer (refresh if expires within 5 minutes)\nconst token = await getVercelOidcToken({\n  expirationBufferMs: 5 * 60 * 1000,\n});\n```\n\n## API\n\n### `getVercelOidcToken(options?)`\n\nGets the current OIDC token from the request context or environment variable. Will refresh the token if expired in development.\n\n**Options:**\n\n- `project?: string` - Project ID (prj\\_\\*) or slug\n- `team?: string` - Team ID (team\\_\\*) or slug\n- `expirationBufferMs?: number` - Buffer time in ms before expiry to trigger refresh (default: 0)\n\n### `getVercelOidcTokenSync()`\n\nSynchronously gets the current OIDC token without refreshing. Use `getVercelOidcToken()` if you need automatic refresh in development.\n","publish_time":1756845901379,"_cnpm_publish_time":1756845901379,"dist-tags":{"canary":"3.2.0","latest":"4.0.9","snapshot":"4.0.9-snapshot-9209a1e84cf9"}}