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.1 to 2.1.3

8

index.js

@@ -193,8 +193,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const url = this.config.tokenUrl;
const body = 'grant_type=authorization_code&'
+ `code=${encodeURIComponent(authorizationCode || '')}&`
+ `redirect_uri=${encodeURIComponent(redirectUrl)}&`
+ `client_id=${encodeURIComponent(clientId)}&`
+ `code_verifier=${codeVerifier}&`
+ oneTimeParams ? ('&' + objectToQueryString(oneTimeParams)) : '';
const paramsObject = Object.assign({ grant_type: 'authorization_code', code: authorizationCode, redirect_uri: redirectUrl, client_id: clientId, code_verifier: codeVerifier }, oneTimeParams);
const body = new URLSearchParams(paramsObject).toString();
return this.makeTokenRequest(url, body);

@@ -201,0 +197,0 @@ });

@@ -431,3 +431,10 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.OAuth2Pkce = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

const url = this.config.tokenUrl;
const body = 'grant_type=authorization_code&' + `code=${encodeURIComponent(authorizationCode || '')}&` + `redirect_uri=${encodeURIComponent(redirectUrl)}&` + `client_id=${encodeURIComponent(clientId)}&` + `code_verifier=${codeVerifier}&` + oneTimeParams ? '&' + (0, _helpers.objectToQueryString)(oneTimeParams) : '';
const paramsObject = Object.assign({
grant_type: 'authorization_code',
code: authorizationCode,
redirect_uri: redirectUrl,
client_id: clientId,
code_verifier: codeVerifier
}, oneTimeParams);
const body = new URLSearchParams(paramsObject).toString();
return this.makeTokenRequest(url, body);

@@ -434,0 +441,0 @@ });

{
"name": "oauth2-pkce",
"version": "2.1.1",
"version": "2.1.3",
"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": {
"type": "git",
"url": "https://github.com/Tim-Erwin/oauth2-pkce.git"
"url": "https://github.com/Archelyst/oauth2-pkce.git"
},

@@ -15,0 +12,0 @@ "scripts": {

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