README
Oauth v2.0
DESCRIPTION
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
- string*
Returns
array
Example
Code
oauth2().getAccess();
Outputs
RESULTS
getLoginUrl
url getLoginUrl(String|null, String|null);
Returns website login url
Parameters
string|null
string|null
Returns
url
Example
Code
oauth2().getLoginUrl();
Outputs
RESULTS
setState
this setState(String);
Set state
Parameters
- string
Returns
this
Example
Code
oauth2().setState();
Outputs
RESULTS
setScope
this setScope(String|array);
Set scope
Parameters
- string|array
Returns
this
Example
Code
oauth2().setScope();
Outputs
RESULTS
setDisplay
this setDisplay(String|array);
Set display
Parameters
- string|array
Returns
this
Example
Code
oauth2().setDisplay();
Outputs
RESULTS
