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

@stacks/auth

Package Overview
Dependencies
Maintainers
5
Versions
659
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stacks/auth - npm Package Compare versions

Comparing version 6.14.1-next.38 to 6.14.1-next.63

5

dist/esm/userSession.js

@@ -6,3 +6,4 @@ import { AppConfig } from './appConfig';

import * as authMessages from './messages';
import { decryptContent, encryptContent, isValidPrivateKey, } from '@stacks/encryption';
import { utils } from '@noble/secp256k1';
import { decryptContent, encryptContent } from '@stacks/encryption';
import { getAddressFromDID } from './dids';

@@ -117,3 +118,3 @@ import { createFetchFn, GAIA_URL, getGlobalObject, HIRO_MAINNET_URL, InvalidStateError, isLaterVersion, Logger, LoginFailedError, MissingParameterError, nextHour, } from '@stacks/common';

Logger.warn('Failed decryption of appPrivateKey, will try to use as given');
if (!isValidPrivateKey(tokenPayload.private_key)) {
if (!utils.isValidPrivateKey(tokenPayload.private_key)) {
throw new LoginFailedError('Failed decrypting appPrivateKey. Usually means' +

@@ -120,0 +121,0 @@ ' that the transit key has changed during login.');

3

dist/userSession.js

@@ -32,2 +32,3 @@ "use strict";

const authMessages = __importStar(require("./messages"));
const secp256k1_1 = require("@noble/secp256k1");
const encryption_1 = require("@stacks/encryption");

@@ -143,3 +144,3 @@ const dids_1 = require("./dids");

common_1.Logger.warn('Failed decryption of appPrivateKey, will try to use as given');
if (!(0, encryption_1.isValidPrivateKey)(tokenPayload.private_key)) {
if (!secp256k1_1.utils.isValidPrivateKey(tokenPayload.private_key)) {
throw new common_1.LoginFailedError('Failed decrypting appPrivateKey. Usually means' +

@@ -146,0 +147,0 @@ ' that the transit key has changed during login.');

{
"name": "@stacks/auth",
"version": "6.14.1-next.38+3d92cc71",
"version": "6.14.1-next.63+95d4e196",
"description": "Authentication for Stacks apps.",

@@ -23,6 +23,7 @@ "license": "MIT",

"dependencies": {
"@stacks/common": "^6.14.1-next.38+3d92cc71",
"@stacks/encryption": "^6.14.1-next.38+3d92cc71",
"@stacks/network": "^6.14.1-next.38+3d92cc71",
"@stacks/profile": "^6.14.1-next.38+3d92cc71",
"@noble/secp256k1": "1.7.1",
"@stacks/common": "^6.14.1-next.63+95d4e196",
"@stacks/encryption": "^6.14.1-next.63+95d4e196",
"@stacks/network": "^6.14.1-next.63+95d4e196",
"@stacks/profile": "^6.14.1-next.63+95d4e196",
"cross-fetch": "^3.1.5",

@@ -63,3 +64,3 @@ "jsontokens": "^4.0.1"

},
"gitHead": "3d92cc71fbdc199225fd71111e890ac55ae28022"
"gitHead": "95d4e196cce6322c4cf7f2435ebc25a85e320498"
}

@@ -9,8 +9,4 @@ /* eslint-disable @typescript-eslint/no-unsafe-declaration-merging */

import * as authMessages from './messages';
import {
decryptContent,
encryptContent,
EncryptContentOptions,
isValidPrivateKey,
} from '@stacks/encryption';
import { utils } from '@noble/secp256k1';
import { decryptContent, encryptContent, EncryptContentOptions } from '@stacks/encryption';
import { getAddressFromDID } from './dids';

@@ -258,3 +254,3 @@ import {

Logger.warn('Failed decryption of appPrivateKey, will try to use as given');
if (!isValidPrivateKey(tokenPayload.private_key as string)) {
if (!utils.isValidPrivateKey(tokenPayload.private_key as string)) {
throw new LoginFailedError(

@@ -261,0 +257,0 @@ 'Failed decrypting appPrivateKey. Usually means' +

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