New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bity/oauth2-auth-code-pkce

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bity/oauth2-auth-code-pkce - npm Package Compare versions

Comparing version 2.8.1 to 2.8.2

7

index.js

@@ -466,4 +466,5 @@ "use strict";

var _this = this;
var _a;
this.assertStateAndConfigArePresent();
var _a = this.config, onInvalidGrant = _a.onInvalidGrant, tokenUrl = _a.tokenUrl;
var _b = this.config, onInvalidGrant = _b.onInvalidGrant, tokenUrl = _b.tokenUrl;
var refreshToken = this.state.refreshToken;

@@ -475,3 +476,3 @@ if (!refreshToken) {

var body = "grant_type=refresh_token&"
+ ("refresh_token=" + refreshToken);
+ ("refresh_token=" + ((_a = refreshToken) === null || _a === void 0 ? void 0 : _a.value));
return fetch(url, {

@@ -683,3 +684,3 @@ method: 'POST',

var _b = queryStringAndHashUrlPart.split('#'), _queryParamsPart = _b[0], hashUrlPart = _b[1];
return urlPart + "#" + hashUrlPart;
return "" + urlPart + (hashUrlPart !== undefined ? "#" + hashUrlPart : '');
};

@@ -686,0 +687,0 @@ /**

@@ -361,3 +361,3 @@ /**

const body = `grant_type=refresh_token&`
+ `refresh_token=${refreshToken}`;
+ `refresh_token=${refreshToken?.value}`;

@@ -601,3 +601,3 @@ return fetch(url, {

const [_queryParamsPart, hashUrlPart] = queryStringAndHashUrlPart.split('#');
return `${urlPart}#${hashUrlPart}`;
return `${urlPart}${hashUrlPart !== undefined ? `#${hashUrlPart}` : ''}`;
}

@@ -604,0 +604,0 @@

@@ -467,4 +467,5 @@ (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.OAuth2AuthCodePKCE = 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){

var _this = this;
var _a;
this.assertStateAndConfigArePresent();
var _a = this.config, onInvalidGrant = _a.onInvalidGrant, tokenUrl = _a.tokenUrl;
var _b = this.config, onInvalidGrant = _b.onInvalidGrant, tokenUrl = _b.tokenUrl;
var refreshToken = this.state.refreshToken;

@@ -476,3 +477,3 @@ if (!refreshToken) {

var body = "grant_type=refresh_token&"
+ ("refresh_token=" + refreshToken);
+ ("refresh_token=" + ((_a = refreshToken) === null || _a === void 0 ? void 0 : _a.value));
return fetch(url, {

@@ -684,3 +685,3 @@ method: 'POST',

var _b = queryStringAndHashUrlPart.split('#'), _queryParamsPart = _b[0], hashUrlPart = _b[1];
return urlPart + "#" + hashUrlPart;
return "" + urlPart + (hashUrlPart !== undefined ? "#" + hashUrlPart : '');
};

@@ -687,0 +688,0 @@ /**

{
"name": "@bity/oauth2-auth-code-pkce",
"version": "2.8.1",
"version": "2.8.2",
"description": "An OAuth 2.0 client that ONLY supports Authorization Code flow with PKCE support.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -19,2 +19,5 @@ # OAuth2AuthCodePKCE client

See the source code of `tests/panel.html`. It's commented with helpful
information.
Run `npm run serve:tests` and navigate to

@@ -21,0 +24,0 @@ http://localhost:8080/tests/panel.html

Sorry, the diff of this file is not supported yet

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