oauth4webapi
Advanced tools
Comparing version 2.4.4 to 2.4.5
@@ -130,5 +130,3 @@ /** JSON Object */ | ||
export type JWSAlgorithm = 'PS256' | 'ES256' | 'RS256' | 'EdDSA' | 'ES384' | 'PS384' | 'RS384' | 'ES512' | 'PS512' | 'RS512'; | ||
/** @ignore during Documentation generation but part of the public API */ | ||
export declare const clockSkew: unique symbol; | ||
/** @ignore during Documentation generation but part of the public API */ | ||
export declare const clockTolerance: unique symbol; | ||
@@ -460,5 +458,5 @@ /** | ||
* | ||
* @ignore during Documentation generation but part of the public API | ||
* @example | ||
* | ||
* @example Client's local clock is mistakenly 1 hour in the past | ||
* When the client's local clock is mistakenly 1 hour in the past | ||
* | ||
@@ -473,4 +471,6 @@ * ```ts | ||
* | ||
* @example Client's local clock is mistakenly 1 hour in the future | ||
* @example | ||
* | ||
* When the client's local clock is mistakenly 1 hour in the future | ||
* | ||
* ```ts | ||
@@ -489,5 +489,5 @@ * const client: oauth.Client = { | ||
* | ||
* @ignore during Documentation generation but part of the public API | ||
* @example | ||
* | ||
* @example Tolerate 30 seconds clock skew when validating JWT claims like exp or nbf. | ||
* Tolerate 30 seconds clock skew when validating JWT claims like exp or nbf. | ||
* | ||
@@ -754,6 +754,4 @@ * ```ts | ||
* option is also used. | ||
* | ||
* @ignore during Documentation generation but part of the public API | ||
*/ | ||
clockSkew?: number; | ||
[clockSkew]?: number; | ||
} | ||
@@ -760,0 +758,0 @@ /** |
let USER_AGENT; | ||
if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) { | ||
const NAME = 'oauth4webapi'; | ||
const VERSION = 'v2.4.4'; | ||
const VERSION = 'v2.4.5'; | ||
USER_AGENT = `${NAME}/${VERSION}`; | ||
@@ -659,3 +659,3 @@ } | ||
else { | ||
await dpopProofJwt(headers, options.DPoP, url, 'GET', getClockSkew({ [clockSkew]: options?.clockSkew }), accessToken); | ||
await dpopProofJwt(headers, options.DPoP, url, 'GET', getClockSkew({ [clockSkew]: options?.[clockSkew] }), accessToken); | ||
headers.set('authorization', `DPoP ${accessToken}`); | ||
@@ -689,3 +689,3 @@ } | ||
...options, | ||
clockSkew: getClockSkew(client), | ||
[clockSkew]: getClockSkew(client), | ||
}); | ||
@@ -692,0 +692,0 @@ } |
{ | ||
"name": "oauth4webapi", | ||
"version": "2.4.4", | ||
"version": "2.4.5", | ||
"description": "OAuth 2 / OpenID Connect for JavaScript Runtimes", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -46,3 +46,3 @@ # OAuth 2 / OpenID Connect for JavaScript Runtimes | ||
```js | ||
import * as oauth2 from 'https://deno.land/x/oauth4webapi@v2.4.4/mod.ts' | ||
import * as oauth2 from 'https://deno.land/x/oauth4webapi@v2.4.5/mod.ts' | ||
``` | ||
@@ -49,0 +49,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
127399
2922