oauth4webapi 2.12.0 → 2.12.1
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/README.md +1 -1
- package/build/index.js +2 -2
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ import * as oauth from 'oauth4webapi'
|
|
|
46
46
|
**`example`** Deno import
|
|
47
47
|
|
|
48
48
|
```js
|
|
49
|
-
import * as oauth from 'https://deno.land/x/oauth4webapi@v2.12.
|
|
49
|
+
import * as oauth from 'https://deno.land/x/oauth4webapi@v2.12.1/mod.ts'
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
- Authorization Code Flow (OAuth 2.0) - [source](examples/oauth.ts)
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let USER_AGENT;
|
|
2
2
|
if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) {
|
|
3
3
|
const NAME = 'oauth4webapi';
|
|
4
|
-
const VERSION = 'v2.12.
|
|
4
|
+
const VERSION = 'v2.12.1';
|
|
5
5
|
USER_AGENT = `${NAME}/${VERSION}`;
|
|
6
6
|
}
|
|
7
7
|
function looseInstanceOf(input, expected) {
|
|
@@ -702,7 +702,7 @@ export async function protectedResourceRequest(accessToken, method, url, headers
|
|
|
702
702
|
headers.set('authorization', `Bearer ${accessToken}`);
|
|
703
703
|
}
|
|
704
704
|
else {
|
|
705
|
-
await dpopProofJwt(headers, options.DPoP, url,
|
|
705
|
+
await dpopProofJwt(headers, options.DPoP, url, method.toUpperCase(), getClockSkew({ [clockSkew]: options?.[clockSkew] }), accessToken);
|
|
706
706
|
headers.set('authorization', `DPoP ${accessToken}`);
|
|
707
707
|
}
|
|
708
708
|
return (options?.[customFetch] || fetch)(url.href, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oauth4webapi",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "OAuth 2 / OpenID Connect for JavaScript Runtimes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"access token",
|
|
@@ -67,28 +67,28 @@
|
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@koa/cors": "^5.0.0",
|
|
69
69
|
"@types/koa__cors": "^5.0.0",
|
|
70
|
-
"@types/node": "^20.
|
|
70
|
+
"@types/node": "^20.16.3",
|
|
71
71
|
"@types/qunit": "^2.19.10",
|
|
72
72
|
"archiver": "^7.0.1",
|
|
73
73
|
"ava": "^6.1.3",
|
|
74
74
|
"chrome-launcher": "^1.1.2",
|
|
75
|
-
"edge-runtime": "^3.0.
|
|
75
|
+
"edge-runtime": "^3.0.3",
|
|
76
76
|
"esbuild": "^0.23.1",
|
|
77
|
-
"jose": "^5.
|
|
77
|
+
"jose": "^5.8.0",
|
|
78
78
|
"oidc-provider": "^8.5.1",
|
|
79
79
|
"patch-package": "^8.0.0",
|
|
80
80
|
"prettier": "^3.3.3",
|
|
81
81
|
"prettier-plugin-jsdoc": "^1.3.0",
|
|
82
|
-
"puppeteer-core": "^23.
|
|
83
|
-
"qunit": "^2.
|
|
82
|
+
"puppeteer-core": "^23.2.2",
|
|
83
|
+
"qunit": "^2.22.0",
|
|
84
84
|
"raw-body": "^3.0.0",
|
|
85
85
|
"selfsigned": "^2.4.1",
|
|
86
86
|
"timekeeper": "^2.3.1",
|
|
87
|
-
"tsx": "^4.
|
|
87
|
+
"tsx": "^4.19.0",
|
|
88
88
|
"typedoc": "^0.26.6",
|
|
89
|
-
"typedoc-plugin-markdown": "^4.2.
|
|
90
|
-
"typedoc-plugin-mdn-links": "^3.2.
|
|
89
|
+
"typedoc-plugin-markdown": "^4.2.6",
|
|
90
|
+
"typedoc-plugin-mdn-links": "^3.2.11",
|
|
91
91
|
"typescript": "~5.5.4",
|
|
92
|
-
"undici": "^6.19.
|
|
92
|
+
"undici": "^6.19.8"
|
|
93
93
|
}
|
|
94
94
|
}
|