Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@miow26/session
Advanced tools
This module provides functions for creating and restoring sessions using credentials stored in JSON files. It includes functions for initializing a new session and restoring a session after each restart.
To use this module, follow these steps:
Clone the repository to your local machine:
git clone https://github.com/miow7083/session-Maker.git
Install dependencies:
npm install session-management-module
Import the module in your project:
import { CreateSession, RestoreSession } from 'session-management-module';
To create a new session, call the CreateSession
function with the desired session ID and, optionally, the folder path for authentication information.
await CreateSession('mySessionID', 'auth_info_folder');
To restore a session after each restart, call the RestoreSession
function with the session ID and, optionally, the folder path for authentication information.
await RestoreSession('mySessionID', 'auth_info_folder');
sessionID
(string): The unique identifier for the session.AuthFolder
(string, optional): The folder path for authentication information. Defaults to 'auth_info_baileys'
.session-management-module.js
: Main module file containing the CreateSession
and RestoreSession
functions.Model.js
: Module file containing functions MakeSession
and restoreSession
.README.md
: This file, containing information about the module.Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
FAQs
---
We found that @miow26/session demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.