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

@cloudbase/oauth

Package Overview
Dependencies
Maintainers
15
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudbase/oauth - npm Package Compare versions

Comparing version 1.3.8-beta to 1.3.9-beta

13

app/openuri.js

@@ -37,8 +37,15 @@ "use strict";

const openURL = new URL(url);
const redirectUri = openURL.searchParams.get('redirect_uri');
let search = openURL.search.substring(1);
let contactSign = "?";
if (openURL.hash.indexOf('=') > 0) {
search = openURL.hash.substring(1);
contactSign = "#";
}
const searchParams = new URLSearchParams(search);
const redirectUri = searchParams.get('redirect_uri');
if (redirectUri) {
const redirectUrl = new URL(redirectUri);
redirectUrl.searchParams.append(iframeTag, "on");
openURL.searchParams.set('redirect_uri', redirectUrl.href);
url = openURL.href;
searchParams.set('redirect_uri', redirectUrl.href);
url = openURL.origin + openURL.pathname + contactSign + searchParams.toString();
}

@@ -45,0 +52,0 @@ iframe.setAttribute('src', url);

{
"name": "@cloudbase/oauth",
"version": "1.3.8-beta",
"version": "1.3.9-beta",
"description": "",

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

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