Socket
Socket
Sign inDemoInstall

vklogin-electron

Package Overview
Dependencies
169
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vklogin-electron

VK authorization for standalone electron application.


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

vklogin-electron

Install

npm install --save vklogin-electron

To get app_id do the following : 1.Register account on vk.com 2.Create standalone application https://vk.com/editapp?act=create 3.Go to Settings 4.Select Application ID

Usage

import { getToken, Access_token } from 'vklogin-electron'; 

app.on( 
    'ready', 
    () => {

      let handler = new BrowserWindow(
        {  
            width:width,       
            height:height,        
            backgroundColor:'white', 
            center:true
        }   
      ); 
         
      getToken(handler,app_id)
      .then(
        (token:Access_token) => { 

          console.log(token);
             
          handler.loadURL(
            'file://'+__dirname+'/app.html'
          ); 
          
        }
      )
     
    } 
);   

License

MIT

Keywords

FAQs

Last updated on 30 Jul 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc