Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@vk-io/authorization
Advanced tools
Readme
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 101 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.