vklogin-electron
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i vklogin-electron

Weekly Downloads

2

Version

1.0.3

License

MIT

Last publish

Collaborators

  • anatolystrashkevich