New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oauth-electron

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oauth-electron

easy oauth generic handling for electron

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-82.89%
Maintainers
1
Weekly downloads
 
Created
Source

drawing 1

this package is currently in development and is not available for use

Use OAuth in a simple way inside your electron App.

Installation

add it to your elenctron project using npm command

npm install oauth-electron --save

Usage

Oauth1

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

var oauth = require('oauth-electron-twitter').oauth2;
var data = require('oauth-electron-twitter').oauth2_data;

use or extend the oauth object as per your requirements

{
    "key" : "",
    "secret" : "";
    "window" : "";
    "url" : "";
    "request_token" : "";
    "access_token" : "";
    "version" : "";
    "callback" : "";
    "signature_method" : "";
}

pass the previously named object and a the widow to display into the login process.

var auth = new oauth();
auth.login(info, window);

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

{
    oauth_access_token: ***,
    oauth_access_token_secret: ***
}

Oauth2

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

var oauth = require('oauth-electron-twitter').oauth2;
var data = require('oauth-electron-twitter').oauth2_data;

use or extend the oauth object as per your requirements

{
    "key" : "",
    "secret" : "";
    "window" : "";
    "base_url" : "";
    "auth_path" : "";
    "token_path" : "";
    "customHeaders" : "";
    "scope" : "";
}

pass the previously named object and a the widow to display into the login process.

var auth = new oauth();
auth.login(info, window);

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

{
    oauth_access_token: ***,
    oauth_refresh_token: ***
}
logo: Award,Passport graphics by Freepik from Flaticon are licensed under CC BY 3.0. Made with Logo Maker

Keywords

FAQs

Package last updated on 28 Apr 2016

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc