# eden-oauth2

> Eden Node JS OAUTH2

Latest version **0.0.32** (published 2015-06-01) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install eden-oauth2
pnpm add eden-oauth2
yarn add eden-oauth2
bun add eden-oauth2
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.32 |
| Published | 2015-06-01 |
| First published | 2014-09-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Christian Blanquera |
| Maintainers | cblanquera |
| Keywords | eden, library |

## Links

- npm: https://www.npmjs.com/package/eden-oauth2
- Repository: https://github.com/edenjs/oauth2
- Issues: https://github.com/edenjs/oauth2/issues
- npm.io page: https://npm.io/package/eden-oauth2

## Dependencies (4)

- [eden-hash](https://npm.io/package/eden-hash.md) 0.0.32
- [eden-rest](https://npm.io/package/eden-rest.md) 0.0.32
- [eden-array](https://npm.io/package/eden-array.md) 0.0.32
- [eden-class](https://npm.io/package/eden-class.md) 0.0.32

## Recent versions

- 0.0.32 (latest) — 2015-06-01
- 0.0.31 — 2014-11-28
- 0.0.28 — 2014-11-11
- 0.0.27 — 2014-11-11
- 0.0.26 — 2014-11-07
- 0.0.25 — 2014-11-06
- 0.0.24 — 2014-11-03
- 0.0.23 — 2014-10-17
- 0.0.21 — 2014-10-08
- 0.0.2-0.2 — 2014-10-08
- 0.0.20 — 2014-10-08
- 0.0.17 — 2014-10-02
- 0.0.16 — 2014-10-02
- 0.0.15 — 2014-10-01
- 0.0.14 — 2014-09-29
- … 3 more at https://npm.io/package/eden-oauth2/versions

## README

#Oauth v2.0

DESCRIPTION

[![Build Status](https://api.travis-ci.org/edenjs/oauth2.png)](https://travis-ci.org/edenjs/oauth2)

## General

### Installation

```
npm install eden-oauth2
```

### Usage

```
var oauth2 = require('eden-oauth2');
```

## Methods

  * [approvalPromptToAuto](#approvalPromptToAuto)

  * [autoApprove](#autoApprove)

  * [forceApprove](#forceApprove)

  * [forOffline](#forOffline)

  * [forOnline](#forOnline)

  * [getAccess](#getAccess)

  * [getLoginUrl](#getLoginUrl)

  * [setState](#setState)

  * [setScope](#setScope)

  * [setDisplay](#setDisplay)

---

<a name="approvalPromptToAuto"></a>

### approvalPromptToAuto

```
 this approvalPromptToAuto();
```

Set auth for online access

#### Parameters

#### Returns

 this

#### Example

##### Code

```
oauth2().approvalPromptToAuto();
```

##### Outputs

```
RESULTS
```

---

<a name="autoApprove"></a>

### autoApprove

```
 this autoApprove();
```

Set auth to auto approve

#### Parameters

#### Returns

 this

#### Example

##### Code

```
oauth2().autoApprove();
```

##### Outputs

```
RESULTS
```

---

<a name="forceApprove"></a>

### forceApprove

```
 this forceApprove();
```

Set auth for force approve

#### Parameters

#### Returns

 this

#### Example

##### Code

```
oauth2().forceApprove();
```

##### Outputs

```
RESULTS
```

---

<a name="forOffline"></a>

### forOffline

```
 this forOffline();
```

Set auth for offline access

#### Parameters

#### Returns

 this

#### Example

##### Code

```
oauth2().forOffline();
```

##### Outputs

```
RESULTS
```

---

<a name="forOnline"></a>

### forOnline

```
 this forOnline();
```

Set auth for online access

#### Parameters

#### Returns

 this

#### Example

##### Code

```
oauth2().forOnline();
```

##### Outputs

```
RESULTS
```

---

<a name="getAccess"></a>

### getAccess

```
 array getAccess(String*);
```

Returns website login url

#### Parameters

  1. string*

#### Returns

 array

#### Example

##### Code

```
oauth2().getAccess();
```

##### Outputs

```
RESULTS
```

---

<a name="getLoginUrl"></a>

### 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
```

---

<a name="setState"></a>

### setState

```
 this setState(String);
```

Set state

#### Parameters

  1. string

#### Returns

 this

#### Example

##### Code

```
oauth2().setState();
```

##### Outputs

```
RESULTS
```

---

<a name="setScope"></a>

### setScope

```
 this setScope(String|array);
```

Set scope

#### Parameters

  1. string|array

#### Returns

 this

#### Example

##### Code

```
oauth2().setScope();
```

##### Outputs

```
RESULTS
```

---

<a name="setDisplay"></a>

### setDisplay

```
 this setDisplay(String|array);
```

Set display

#### Parameters

  1. string|array

#### Returns

 this

#### Example

##### Code

```
oauth2().setDisplay();
```

##### Outputs

```
RESULTS
```

---
_Source: https://npm.io/package/eden-oauth2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
