@vercel/functions
Advanced tools
+7
-0
| # @vercel/functions | ||
| ## 3.4.2 | ||
| ### Patch Changes | ||
| - Updated dependencies [[`3760ea1e97fdc45dae36c64138023e1b1a075467`](https://github.com/vercel/vercel/commit/3760ea1e97fdc45dae36c64138023e1b1a075467)]: | ||
| - @vercel/oidc@3.2.0 | ||
| ## 3.4.1 | ||
@@ -4,0 +11,0 @@ |
+22
-3
@@ -39,3 +39,3 @@ # Module: oidc | ||
| ▸ **getVercelOidcToken**(): [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<`string`\> | ||
| ▸ **getVercelOidcToken**(`options?`): [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<`string`\> | ||
@@ -70,2 +70,21 @@ Gets the current OIDC token from the request context or the environment variable. | ||
| **`Example`** | ||
| ```js | ||
| // Using the OIDC token with explicit team and project (supports IDs and slugs) | ||
| getVercelOidcToken({ team: 'my-team', project: 'my-project' }) | ||
| .then(token => { | ||
| console.log('OIDC Token:', token); | ||
| }) | ||
| .catch(error => { | ||
| console.error('Error:', error.message); | ||
| }); | ||
| ``` | ||
| #### Parameters | ||
| | Name | Type | Description | | ||
| | :--------- | :-------------------------- | :------------------------------------------ | | ||
| | `options?` | `GetVercelOidcTokenOptions` | Optional configuration for token retrieval. | | ||
| #### Returns | ||
@@ -79,3 +98,3 @@ | ||
| packages/oidc/dist/get-vercel-oidc-token.d.ts:27 | ||
| packages/oidc/dist/get-vercel-oidc-token.d.ts:60 | ||
@@ -117,2 +136,2 @@ --- | ||
| packages/oidc/dist/get-vercel-oidc-token.d.ts:49 | ||
| packages/oidc/dist/get-vercel-oidc-token.d.ts:82 |
+2
-2
@@ -33,3 +33,3 @@ { | ||
| }, | ||
| "version": "3.4.1", | ||
| "version": "3.4.2", | ||
| "repository": { | ||
@@ -76,3 +76,3 @@ "directory": "packages/functions", | ||
| "dependencies": { | ||
| "@vercel/oidc": "3.1.0" | ||
| "@vercel/oidc": "3.2.0" | ||
| }, | ||
@@ -79,0 +79,0 @@ "scripts": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 8 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 8 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
152847
0.53%+ Added
- Removed
Updated