Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oauth2-pkce

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oauth2-pkce - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

index.umd.js

8

index.d.ts
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()`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc