Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@vk-io/authorization
Advanced tools
VK-IO Authorization API - Separated module for authorization by login & password, and etc... ⚙️
Node.js 12.20.0 or newer is required
npm
(recommended)
npm i @vk-io/authorization
Yarn
yarn add @vk-io/authorization
pnpm
pnpm add @vk-io/authorization
import { CallbackService } from 'vk-io';
import { DirectAuthorization, officialAppCredentials } from '@vk-io/authorization';
const callbackService = new CallbackService();
const direct = new DirectAuthorization({
callbackService,
scope: 'all',
// Direct authorization is only available for official applications
...officialAppCredentials.android, // { clientId: string; clientSecret: string; }
// Or manually provide app credentials
// clientId: process.env.CLIENT_ID,
// clientSecret: process.env.CLIENT_SECRET,
login: process.env.LOGIN,
password: process.env.PASSWORD,
apiVersion: '5.131'
});
async function run() {
const response = await direct.run();
console.log('Token:', response.token);
console.log('Expires:', response.expires);
console.log('Email:', response.email);
console.log('User ID:', response.userId);
}
run().catch(console.error);
The module also supports ImplicitFlowUser
, ImplicitFlowGroup
and AccountVerification
FAQs
Separated module for authorization
The npm package @vk-io/authorization receives a total of 47 weekly downloads. As such, @vk-io/authorization popularity was classified as not popular.
We found that @vk-io/authorization demonstrated a not healthy version release cadence and project activity because the last version was released 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.