{"_id":"@vercel/oidc@4.0.5","bugs":{"url":"https://github.com/vercel/vercel/issues"},"dist":{"shasum":"b7e19b9194059946d9044189545973f04a4133ab","tarball":"http://registry-npm.ywwl.com/@vercel/oidc/download/@vercel/oidc-4.0.5.tgz","fileCount":58,"integrity":"sha512-E+duTxv0W8r3qNCGUYxTLt0V0BlLUlrEqxYOu2OoFubIbxwGjwm4wofache+YgU6Sr0MwoAA/vsSrrNrrWjimw==","signatures":[{"sig":"MEUCIQDZtLElTpCwn4tHvdbVjVV7vPuFDUlZN48VHpgdxez4FAIgEDuPqTAci8k9adb5V5lVG1yFF2VfsnI+AsPGO3R9ZNU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDy0sLfQ0XiPDNAw8URMPi0AN2d5IdP7gTztJ28u4LORAiEAvYZt0TBZGJ2vfMi9f6w3AFH/Myif/K3GJvg2kIfNeTI="}],"unpackedSize":165443,"size":29854,"noattachment":false,"key":"/@vercel/oidc/-/@vercel/oidc-4.0.5.tgz"},"name":"@vercel/oidc","_from":"file:/home/runner/work/_temp/release/npm/vercel-oidc-4.0.5.tgz","types":"./dist/index.d.ts","engines":{"node":">= 20"},"exports":{".":{"import":"./dist/index.js","browser":"./dist/index-browser.js","require":"./dist/index.js","workflow":"./dist/index-browser.js","edge-light":"./dist/index-edge-light.js","react-native":"./dist/index-browser.js"}},"license":"Apache-2.0","scripts":{"test":"vitest","build":"pnpm run build:code","pretest":"pnpm run build:code","build:code":"node build.mjs","build:docs":"typedoc && prettier --write docs/**/*.md docs/*.md"},"version":"4.0.5","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"f64fe29d-9a2f-416b-8289-e15a2458cb57"}},"homepage":"https://vercel.com","_resolved":"/home/runner/work/_temp/release/npm/vercel-oidc-4.0.5.tgz","_integrity":"sha512-E+duTxv0W8r3qNCGUYxTLt0V0BlLUlrEqxYOu2OoFubIbxwGjwm4wofache+YgU6Sr0MwoAA/vsSrrNrrWjimw==","repository":{"url":"git+https://github.com/vercel/vercel.git","type":"git","directory":"packages/oidc"},"_npmVersion":"11.21.0","description":"Runtime OIDC helpers intended for use with Vercel Functions","directories":{},"maintainers":[{"name":"matheuss","email":"matheus.frndes@gmail.com"},{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"zeit-bot","email":"team@zeit.co"}],"_nodeVersion":"24.22.1","dependencies":{"jose":"^5.9.6","@vercel/cli-exec":"1.0.1","@vercel/cli-config":"0.3.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.10","typedoc":"0.28.19","prettier":"3.8.3","tinyspawn":"1.3.1","typedoc-plugin-markdown":"4.11.0","typedoc-plugin-mdn-links":"5.1.1"},"peerDependenciesMeta":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/oidc_4.0.5_1793302721204_0.872629513654397"},"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":1793302721307,"_cnpm_publish_time":1793302721307,"dist-tags":{"canary":"3.2.0","latest":"4.0.9","snapshot":"4.0.9-snapshot-9209a1e84cf9"}}