oauth2-pkce
Advanced tools
Comparing version 2.1.1 to 2.1.3
@@ -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": { |
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
1105
86248