
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@dyadikov/vue-vk-oauth2
Advanced tools
Это обёртка VK Oauth для Vue2 https://vk.com/dev/openapi
github https://github.com/DenisYadikov/vue-vk-oauth2
npm i @dyadikov/vue-vk-oauth2
Подключить пакет в проект, виджеты описываются опционально:
import VKAuth from '@dyadikov/vue-vk-oauth2'
new Vue(VKAuth, {apiId: YOUR_VK_APP_ID,
widgets: [{
widget: 'ContactUs',
selector: 'vk_contact_us',
props: {text: 'Задайте свой вопрос'}
}]
})
После подключения вы можете обращаться к инстансу через глобальную переменную $vkAuth
<template>
<div>
<button @click="vkLogin">vkLogin</button>
<button @click="vkLogout">vkLogout</button>
<button @click="vkGetLoginStatus">vkGetLoginStatus</button>
<button @click="vkRevokeGrants">vkRevokeGrants</button>
<button @click="vkGetSession">vkGetSession</button>
<button @click="vkApiMethodExample">vkApiMethodExample</button>
<!-- VK Widget Example -->
<div id="vk_contact_us"></div>
</div>
</template>
...
<script>
import Vue from 'vue'
import VKAuth from '@dyadikov/vue-vk-oauth2'
new Vue(VKAuth, {apiId: YOUR_VK_APP_ID,
widgets: [{
widget: 'ContactUs',
selector: 'vk_contact_us',
props: {text: 'Задайте свой вопрос'}
}]
})
export default {
methods: {
vkLogin () {
this.$vkAuth.login()
.then(response => {
console.log('vklogin', response)
})
.catch(error => {
console.error(error)
})
},
vkLogout () {
this.$vkAuth.logout()
.then(response => {
console.log('vklogout', response)
})
.catch(error => {
console.error(error)
})
},
vkGetLoginStatus () {
this.$vkAuth.getLoginStatus()
.then(response => {
console.log(response)
})
.catch(error => {
console.error(error)
})
},
vkRevokeGrants () {
this.$vkAuth.revokeGrants()
.then(response => {
console.log(response)
})
.catch(error => {
console.error(error)
})
},
vkGetSession () {
this.$vkAuth.getSession()
.then(response => {
console.log(response)
})
.catch(error => {
console.error(error)
})
},
vkApiMethodExample () {
this.$vkAuth.Api('users.get', {user_ids: VK_USER_ID, v: '5.73'})
.then(response => {
console.log(response)
})
.catch(error => {
console.error(error)
})
}
}
<script>
FAQs
unofficial vk openapi vue implementation
The npm package @dyadikov/vue-vk-oauth2 receives a total of 12 weekly downloads. As such, @dyadikov/vue-vk-oauth2 popularity was classified as not popular.
We found that @dyadikov/vue-vk-oauth2 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.