@vercel/functions 3.4.1 → 3.5.0-canary.20260211174907.cdd2da6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/docs/modules/oidc.md +22 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @vercel/functions
|
|
2
2
|
|
|
3
|
+
## 3.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`3760ea1e97fdc45dae36c64138023e1b1a075467`](https://github.com/vercel/vercel/commit/3760ea1e97fdc45dae36c64138023e1b1a075467)]:
|
|
8
|
+
- @vercel/oidc@3.2.0
|
|
9
|
+
|
|
3
10
|
## 3.4.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/docs/modules/oidc.md
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
### getVercelOidcToken
|
|
38
38
|
|
|
39
|
-
▸ **getVercelOidcToken**(): [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<`string`\>
|
|
39
|
+
▸ **getVercelOidcToken**(`options?`): [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<`string`\>
|
|
40
40
|
|
|
41
41
|
Gets the current OIDC token from the request context or the environment variable.
|
|
42
42
|
|
|
@@ -66,6 +66,25 @@ getVercelOidcToken()
|
|
|
66
66
|
});
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
+
**`Example`**
|
|
70
|
+
|
|
71
|
+
```js
|
|
72
|
+
// Using the OIDC token with explicit team and project (supports IDs and slugs)
|
|
73
|
+
getVercelOidcToken({ team: 'my-team', project: 'my-project' })
|
|
74
|
+
.then(token => {
|
|
75
|
+
console.log('OIDC Token:', token);
|
|
76
|
+
})
|
|
77
|
+
.catch(error => {
|
|
78
|
+
console.error('Error:', error.message);
|
|
79
|
+
});
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
#### Parameters
|
|
83
|
+
|
|
84
|
+
| Name | Type | Description |
|
|
85
|
+
| :--------- | :-------------------------- | :------------------------------------------ |
|
|
86
|
+
| `options?` | `GetVercelOidcTokenOptions` | Optional configuration for token retrieval. |
|
|
87
|
+
|
|
69
88
|
#### Returns
|
|
70
89
|
|
|
71
90
|
[`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<`string`\>
|
|
@@ -74,7 +93,7 @@ A promise that resolves to the OIDC token.
|
|
|
74
93
|
|
|
75
94
|
#### Defined in
|
|
76
95
|
|
|
77
|
-
packages/oidc/dist/get-vercel-oidc-token.d.ts:
|
|
96
|
+
packages/oidc/dist/get-vercel-oidc-token.d.ts:60
|
|
78
97
|
|
|
79
98
|
---
|
|
80
99
|
|
|
@@ -111,4 +130,4 @@ The OIDC token.
|
|
|
111
130
|
|
|
112
131
|
#### Defined in
|
|
113
132
|
|
|
114
|
-
packages/oidc/dist/get-vercel-oidc-token.d.ts:
|
|
133
|
+
packages/oidc/dist/get-vercel-oidc-token.d.ts:82
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"require": "./middleware.js"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
"version": "3.
|
|
33
|
+
"version": "3.5.0-canary.20260211174907.cdd2da6",
|
|
34
34
|
"repository": {
|
|
35
35
|
"directory": "packages/functions",
|
|
36
36
|
"type": "git",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@vercel/oidc": "3.
|
|
75
|
+
"@vercel/oidc": "3.3.0-canary.20260211174907.cdd2da6"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"pretest": "pnpm run build:code",
|