oauth4webapi
Advanced tools
Comparing version 2.2.0 to 2.2.1
let USER_AGENT; | ||
if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) { | ||
const NAME = 'oauth4webapi'; | ||
const VERSION = 'v2.2.0'; | ||
const VERSION = 'v2.2.1'; | ||
USER_AGENT = `${NAME}/${VERSION}`; | ||
@@ -864,6 +864,10 @@ } | ||
export function getValidatedIdTokenClaims(ref) { | ||
if (!idTokenClaims.has(ref)) { | ||
if (!ref.id_token) { | ||
return undefined; | ||
} | ||
const claims = idTokenClaims.get(ref); | ||
if (!claims) { | ||
throw new TypeError('"ref" was already garbage collected or did not resolve from the proper sources'); | ||
} | ||
return idTokenClaims.get(ref); | ||
return claims; | ||
} | ||
@@ -870,0 +874,0 @@ async function processGenericAccessTokenResponse(as, client, response, ignoreIdToken = false, ignoreRefreshToken = false) { |
{ | ||
"name": "oauth4webapi", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "OAuth 2 / OpenID Connect for Web Platform API JavaScript runtimes", | ||
@@ -66,18 +66,19 @@ "keywords": [ | ||
"@esbuild-kit/esm-loader": "^2.5.5", | ||
"@types/node": "^18.15.0", | ||
"@types/node": "^18.15.11", | ||
"@types/qunit": "^2.19.4", | ||
"ava": "^5.2.0", | ||
"edge-runtime": "^2.1.2", | ||
"esbuild": "^0.17.11", | ||
"jose": "^4.13.1", | ||
"edge-runtime": "^2.1.4", | ||
"esbuild": "^0.17.16", | ||
"jose": "^4.13.2", | ||
"patch-package": "^6.5.1", | ||
"prettier": "^2.8.4", | ||
"prettier": "^2.8.7", | ||
"prettier-plugin-jsdoc": "^0.4.2", | ||
"qunit": "^2.19.4", | ||
"timekeeper": "^2.2.0", | ||
"typedoc": "^0.23.26", | ||
"typedoc-plugin-markdown": "^3.14.0", | ||
"typescript": "^4.9.5", | ||
"undici": "^5.20.0" | ||
"typedoc": "^0.24.1", | ||
"typedoc-plugin-markdown": "^3.15.1", | ||
"typedoc-plugin-mdn-links": "^3.0.3", | ||
"typescript": "^5.0.4", | ||
"undici": "^5.21.2" | ||
} | ||
} |
@@ -42,3 +42,3 @@ # OAuth 2 / OpenID Connect for Web Platform API JavaScript runtimes | ||
```js | ||
import * as oauth2 from 'https://deno.land/x/oauth4webapi@v2.2.0/mod.ts' | ||
import * as oauth2 from 'https://deno.land/x/oauth4webapi@v2.2.1/mod.ts' | ||
``` | ||
@@ -45,0 +45,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124019
2798
17