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

client-oauth2

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

client-oauth2 - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

10

client-oauth2.js

@@ -401,11 +401,11 @@ /* global define */

} else {
var parts = opts.uri.split('#')
var parts = opts.url.split('#')
var token = 'access_token=' + this.accessToken
var uri = parts[0].replace(/[?&]access_token=[^&#]/, '')
var url = parts[0].replace(/[?&]access_token=[^&#]/, '')
var fragment = parts[1] ? '#' + parts[1] : ''
// Prepend the correct query string parameter to the uri.
opts.uri = uri + (uri.indexOf('?') > -1 ? '&' : '?') + token + fragment
// Prepend the correct query string parameter to the url.
opts.url = url + (url.indexOf('?') > -1 ? '&' : '?') + token + fragment
// Attempt to avoid storing the uri in proxies, since the access token
// Attempt to avoid storing the url in proxies, since the access token
// is exposed in the query parameters.

@@ -412,0 +412,0 @@ opts.headers.Pragma = 'no-store'

{
"name": "client-oauth2",
"version": "0.2.2",
"version": "0.2.3",
"description": "Straight-forward library for executing OAuth 2.0 flows and making API requests.",

@@ -5,0 +5,0 @@ "main": "client-oauth2.js",

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