oauth2-pkce
Advanced tools
Comparing version 2.1.0 to 2.1.1
export * from './errors'; | ||
export declare type ObjStringDict = { | ||
export type ObjStringDict = { | ||
[_: string]: string; | ||
}; | ||
export declare type URL = string; | ||
export type URL = string; | ||
export interface Configuration { | ||
@@ -19,3 +19,3 @@ authorizationUrl: URL; | ||
} | ||
export declare type Scopes = string[]; | ||
export type Scopes = string[]; | ||
export interface AccessContext { | ||
@@ -39,3 +39,3 @@ accessToken?: string; | ||
export declare const RECOMMENDED_STATE_LENGTH = 32; | ||
declare type FetchFunc = (input: Request | string, ...rest: any[]) => Promise<Response>; | ||
type FetchFunc = (input: Request | string, ...rest: any[]) => Promise<Response>; | ||
export declare class OAuth2AuthCodePkceClient { | ||
@@ -42,0 +42,0 @@ readonly config: Configuration; |
@@ -198,3 +198,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
+ `code_verifier=${codeVerifier}&` | ||
+ objectToQueryString(oneTimeParams); | ||
+ oneTimeParams ? ('&' + objectToQueryString(oneTimeParams)) : ''; | ||
return this.makeTokenRequest(url, body); | ||
@@ -201,0 +201,0 @@ }); |
{ | ||
"name": "oauth2-pkce", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "An OAuth 2.0 client library for the Authorization Code flow with PKCE", | ||
"main": "index.js", | ||
"types": "*.d.ts", | ||
"files": ["*.js", "*.d.ts"], | ||
"files": [ | ||
"*.js", | ||
"*.d.ts" | ||
], | ||
"repository": { | ||
@@ -9,0 +12,0 @@ "type": "git", |
@@ -160,2 +160,5 @@ # OAuth2PKCE client | ||
### 2.1.1 | ||
* Fixed optional oneTimeParams | ||
### 2.1.0 | ||
@@ -162,0 +165,0 @@ * Added oneTimeParams to `getTokens()` and `exchangeAuthCodeForAccessToken()` |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
86398
10
1103
175
2
2