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

@toruslabs/customauth

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toruslabs/customauth - npm Package Compare versions

Comparing version 16.0.5 to 16.0.6

2

package.json
{
"name": "@toruslabs/customauth",
"version": "16.0.5",
"version": "16.0.6",
"description": "CustomAuth login with torus to get user private key",

@@ -5,0 +5,0 @@ "main": "dist/customauth.cjs.js",

@@ -138,4 +138,4 @@ /* eslint-disable */

<script
src="https://scripts.toruswallet.io/broadcastChannel_8_0_0.js"
integrity="sha384-Q7KaAJnYX4pkKyymEF39qtD0a4poqIMbkiuz5fetrosIhnKlSherFhiQ8ZdQGh17"
src="https://scripts.toruswallet.io/broadcastChannel_8_0_1.js"
integrity="sha384-AgVJJZzZhk+edkFFI+WQ6OsQB11p8qB5eqCufUfHYfMvNLSwv5Bj6cz8WcWc31DH"
crossorigin="anonymous"

@@ -221,6 +221,6 @@ ></script>

if (Object.keys(hashParams).length > 0 && hashParams.state) {
instanceParams = JSON.parse(window.atob(decodeURIComponent(decodeURIComponent(hashParams.state)))) || {};
instanceParams = JSON.parse(base64url.decode(decodeURIComponent(decodeURIComponent(hashParams.state)))) || {};
if (hashParams.error) error = hashParams.error;
} else if (Object.keys(queryParams).length > 0 && queryParams.state) {
instanceParams = JSON.parse(window.atob(decodeURIComponent(decodeURIComponent(queryParams.state)))) || {};
instanceParams = JSON.parse(base64url.decode(decodeURIComponent(decodeURIComponent(queryParams.state)))) || {};
if (queryParams.error) error = queryParams.error;

@@ -227,0 +227,0 @@ }

import { get } from "@toruslabs/http-helpers";
import base64url from "base64url";
import deepmerge from "lodash.merge";

@@ -71,3 +72,3 @@

transports,
} = JSON.parse(atob(extraParams)));
} = JSON.parse(base64url.decode(extraParams)));
} catch (error) {

@@ -74,0 +75,0 @@ log.warn("unable to parse extraParams", error);

@@ -0,1 +1,2 @@

import base64url from "base64url";
import Bowser from "bowser";

@@ -95,6 +96,6 @@

if (Object.keys(hashParameters).length > 0 && hashParameters.state) {
instanceParameters = JSON.parse(atob(decodeURIComponent(decodeURIComponent(hashParameters.state)))) || {};
instanceParameters = JSON.parse(base64url.decode(decodeURIComponent(decodeURIComponent(hashParameters.state)))) || {};
error = hashParameters.error_description || hashParameters.error || error;
} else if (Object.keys(queryParameters).length > 0 && queryParameters.state) {
instanceParameters = JSON.parse(atob(decodeURIComponent(decodeURIComponent(queryParameters.state)))) || {};
instanceParameters = JSON.parse(base64url.decode(decodeURIComponent(decodeURIComponent(queryParameters.state)))) || {};
if (queryParameters.error) error = queryParameters.error;

@@ -101,0 +102,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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