0.0.32 • Published 9 years ago
eden-oauth2 v0.0.32
#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
0.0.32
9 years ago
0.0.31
9 years ago
0.0.28
10 years ago
0.0.27
10 years ago
0.0.26
10 years ago
0.0.25
10 years ago
0.0.24
10 years ago
0.0.23
10 years ago
0.0.21
10 years ago
0.0.2-0.2
10 years ago
0.0.20
10 years ago
0.0.17
10 years ago
0.0.16
10 years ago
0.0.15
10 years ago
0.0.14
10 years ago
0.0.12
10 years ago
0.0.10
10 years ago
0.0.9
10 years ago