# yggio-account

> A service account manager that manages the yggio user account needed e.g. to register a provider . Primarily does the login bit, and returns a user (this repo replaces yggio-service-account-manager)

Latest version **1.1.1** (published 2018-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install yggio-account
pnpm add yggio-account
yarn add yggio-account
bun add yggio-account
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2018-10-12 |
| First published | 2018-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sensative AB |
| Maintainers | sensative-user |
| Keywords | yggio, service, account, login |

## Links

- npm: https://www.npmjs.com/package/yggio-account
- Repository: https://gitlab.com/sensative/yggio-packages/yggio-account
- npm.io page: https://npm.io/package/yggio-account

## Dependencies (3)

- [delay](https://npm.io/package/delay.md) ^2.0.0
- [yggio-api](https://npm.io/package/yggio-api.md) 1.4.1
- [lodash.get](https://npm.io/package/lodash.get.md) ^4.4.2

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2018-10-12
- 1.2.0-alpha.0 — 2018-10-02
- 1.1.0 — 2018-06-13
- 1.0.1 — 2018-06-11
- 1.0.0 — 2018-06-11

## README

## yggio-account: A 'login service' for yggio services

#### Note: this replaces 'yggio-service-account-manager'

to register a new service provider, an yggio-user is needed. This module encapsulates
the stuff necessary to use "user information" to login/register that yggio-user.

### Usage

```javascript
const account = require('yggio-account');
// you need a config with the correct stuffs
const serviceAccountInfo = {
  username: 'my-new-service@test.com',
  password: 'so-secret-so-secret'
  retryDelay: 7000 // ms (if !retryDelay, default is 5000 ms)
};
return serviceAccountManager.connect(serviceAccountInfo)
  .then(serviceAccount => {
    // typically: create/retrieve the service provider now that we
    // have our serviceAccount. And other setup stuff.
    // For now serviceAccount = {accessToken} (set by yggio-config, so the value of this key is configurable)
  });
```
### License
yggio-account is under the MIT license. See LICENSE file.

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