npm.io
0.0.32 • Published 11 years ago

eden-oauth2

Licence
—
Version
0.0.32
Deps
4
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

#Oauth v2.0

DESCRIPTION

Build Status

General

Installation

npm install eden-oauth2
Usage
var oauth2 = require('eden-oauth2');

Methods


approvalPromptToAuto
 this approvalPromptToAuto();

Set auth for online access

Parameters
Returns

this

Example
Code
oauth2().approvalPromptToAuto();
Outputs
RESULTS

autoApprove
 this autoApprove();

Set auth to auto approve

Parameters
Returns

this

Example
Code
oauth2().autoApprove();
Outputs
RESULTS

forceApprove
 this forceApprove();

Set auth for force approve

Parameters
Returns

this

Example
Code
oauth2().forceApprove();
Outputs
RESULTS

forOffline
 this forOffline();

Set auth for offline access

Parameters
Returns

this

Example
Code
oauth2().forOffline();
Outputs
RESULTS

forOnline
 this forOnline();

Set auth for online access

Parameters
Returns

this

Example
Code
oauth2().forOnline();
Outputs
RESULTS

getAccess
 array getAccess(String*);

Returns website login url

Parameters
  1. string*
Returns

array

Example
Code
oauth2().getAccess();
Outputs
RESULTS

getLoginUrl
 url getLoginUrl(String|null, String|null);

Returns website login url

Parameters
  1. string|null

  2. string|null

Returns

url

Example
Code
oauth2().getLoginUrl();
Outputs
RESULTS

setState
 this setState(String);

Set state

Parameters
  1. string
Returns

this

Example
Code
oauth2().setState();
Outputs
RESULTS

setScope
 this setScope(String|array);

Set scope

Parameters
  1. string|array
Returns

this

Example
Code
oauth2().setScope();
Outputs
RESULTS

setDisplay
 this setDisplay(String|array);

Set display

Parameters
  1. string|array
Returns

this

Example
Code
oauth2().setDisplay();
Outputs
RESULTS

Keywords