🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

oauth-electron-twitter

Package Overview
Dependencies
Maintainers
0
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oauth-electron-twitter

oauth for twitter inside electron

latest
Source
npmnpm
Version
1.0.227
Version published
Maintainers
0
Created
Source

logo

Build Status codecov npm GitHub license Maintenance

Use Twitter OAuth in a simple way inside your electron App.

Installation

add it to your electron project using npm install oauth-electron-twitter --save or yarn add oauth-electron-twitter

Usage

require oauth-electron-twitter exports a function that requires a javascript object and an electron window, as seen on the next example:

add the require for ouath and twitter specific code from this package

const auth = require(`oauth-electron-twitter`)

let info = {
    key: ***,
    secret: ***
},
window = new BrowserWindow({webPreferences: {nodeIntegration: false}});

auth.login(info, window)

the login function will return a Promise with the access token and secret

{
    token: ***,
    tokenSecret: ***
}

Migration V0.x to V1.x

  • there is no more need for the twitter object, info becomes a basic object with the properties stated in the usage step.
  • the return object has a different format.
logo: Award graphic by Freepik and Twitter graphic by Icomoon from Flaticon are licensed under CC BY 3.0. Made and modified with Logo Maker

Keywords

twitter

FAQs

Package last updated on 29 Aug 2024

Did you know?

Socket

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