oauth4webapi 2.2.0 → 2.2.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 +7 -3
- package/package.json +11 -10
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ import * as oauth2 from 'oauth4webapi'
|
|
|
39
39
|
**`example`** Deno import
|
|
40
40
|
|
|
41
41
|
```js
|
|
42
|
-
import * as oauth2 from 'https://deno.land/x/oauth4webapi@v2.2.
|
|
42
|
+
import * as oauth2 from 'https://deno.land/x/oauth4webapi@v2.2.1/mod.ts'
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
- Authorization Code Flow - OpenID Connect [source](examples/code.ts), or plain OAuth 2 [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.2.
|
|
4
|
+
const VERSION = 'v2.2.1';
|
|
5
5
|
USER_AGENT = `${NAME}/${VERSION}`;
|
|
6
6
|
}
|
|
7
7
|
export const clockSkew = Symbol();
|
|
@@ -861,10 +861,14 @@ export async function refreshTokenGrantRequest(as, client, refreshToken, options
|
|
|
861
861
|
}
|
|
862
862
|
const idTokenClaims = new WeakMap();
|
|
863
863
|
export function getValidatedIdTokenClaims(ref) {
|
|
864
|
-
if (!
|
|
864
|
+
if (!ref.id_token) {
|
|
865
|
+
return undefined;
|
|
866
|
+
}
|
|
867
|
+
const claims = idTokenClaims.get(ref);
|
|
868
|
+
if (!claims) {
|
|
865
869
|
throw new TypeError('"ref" was already garbage collected or did not resolve from the proper sources');
|
|
866
870
|
}
|
|
867
|
-
return
|
|
871
|
+
return claims;
|
|
868
872
|
}
|
|
869
873
|
async function processGenericAccessTokenResponse(as, client, response, ignoreIdToken = false, ignoreRefreshToken = false) {
|
|
870
874
|
assertAs(as);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oauth4webapi",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "OAuth 2 / OpenID Connect for Web Platform API JavaScript runtimes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|
|
@@ -63,20 +63,21 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@esbuild-kit/esm-loader": "^2.5.5",
|
|
66
|
-
"@types/node": "^18.15.
|
|
66
|
+
"@types/node": "^18.15.11",
|
|
67
67
|
"@types/qunit": "^2.19.4",
|
|
68
68
|
"ava": "^5.2.0",
|
|
69
|
-
"edge-runtime": "^2.1.
|
|
70
|
-
"esbuild": "^0.17.
|
|
71
|
-
"jose": "^4.13.
|
|
69
|
+
"edge-runtime": "^2.1.4",
|
|
70
|
+
"esbuild": "^0.17.16",
|
|
71
|
+
"jose": "^4.13.2",
|
|
72
72
|
"patch-package": "^6.5.1",
|
|
73
|
-
"prettier": "^2.8.
|
|
73
|
+
"prettier": "^2.8.7",
|
|
74
74
|
"prettier-plugin-jsdoc": "^0.4.2",
|
|
75
75
|
"qunit": "^2.19.4",
|
|
76
76
|
"timekeeper": "^2.2.0",
|
|
77
|
-
"typedoc": "^0.
|
|
78
|
-
"typedoc-plugin-markdown": "^3.
|
|
79
|
-
"
|
|
80
|
-
"
|
|
77
|
+
"typedoc": "^0.24.1",
|
|
78
|
+
"typedoc-plugin-markdown": "^3.15.1",
|
|
79
|
+
"typedoc-plugin-mdn-links": "^3.0.3",
|
|
80
|
+
"typescript": "^5.0.4",
|
|
81
|
+
"undici": "^5.21.2"
|
|
81
82
|
}
|
|
82
83
|
}
|