open-index/open-npm huggingface dataset:
npm package: @kronos-integration/service-authentication
Description: authentication providing service
Latest version: 1.0.1
Deprecated: renamed into @kronos-integration/service-authenticator

[![Build Status](https://secure.travis-ci.org/Kronos-Integration/service-authenticator.png)](http://travis-ci.org/Kronos-Integration/service-authenticator)
[![codecov.io](http://codecov.io/github/Kronos-Integration/service-authenticator/coverage.svg?branch=master)](http://codecov.io/github/Kronos-Integration/service-authenticator?branch=master)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![downloads](http://img.shields.io/npm/dm/service-authenticator.svg?style=flat-square)](https://npmjs.org/package/service-authenticator)
[![GitHub Issues](https://img.shields.io/github/issues/Kronos-Integration/service-authenticator.svg?style=flat-square)](https://github.com/Kronos-Integration/service-authenticator/issues)
[![Greenkeeper](https://badges.greenkeeper.io/Kronos-Integration/service-authenticator.svg)](https://greenkeeper.io/)
[![Known Vulnerabilities](https://snyk.io/test/github/Kronos-Integration/service-authenticator/badge.svg)](https://snyk.io/test/github/Kronos-Integration/service-authenticator)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![minified size](https://badgen.net/bundlephobia/min/@kronos-integration/service-authentication)](https://bundlephobia.com/result?p=@kronos-integration/service-authentication)
[![npm](https://img.shields.io/npm/v/@kronos-integration/service-authentication.svg)](https://www.npmjs.com/package/@kronos-integration/service-authentication)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/Kronos-Integration/service-authenticator)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

# @kronos-integration/service-authentication

authentication providing service

# usage

# API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [ServiceAuthenticator](#serviceauthenticator)
    -   [accessTokenGenerator](#accesstokengenerator)
        -   [Parameters](#parameters)

## ServiceAuthenticator

**Extends Service**

### accessTokenGenerator

Generate a request handler to deliver JWT access tokens

#### Parameters

-   `params` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
    -   `params.username` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
    -   `params.password` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** return jwt access_token
npm package: @kronos-integration/service-consul
Description: kronos service to integrate with consul
Latest version: 3.0.38

[![npm](https://img.shields.io/npm/v/@kronos-integration/service-consul.svg)](https://www.npmjs.com/package/@kronos-integration/service-consul)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![minified size](https://badgen.net/bundlephobia/min/@kronos-integration/service-consul)](https://bundlephobia.com/result?p=@kronos-integration/service-consul)
[![downloads](http://img.shields.io/npm/dm/@kronos-integration/service-consul.svg?style=flat-square)](https://npmjs.org/package/@kronos-integration/service-consul)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/Kronos-Integration/service-consul.git)
[![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

# @kronos-integration/service-consul

kronos service to integrate with consul

# usage

# API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [ServiceConsul](#serviceconsul)
    -   [Parameters](#parameters)
    -   [autostart](#autostart)
    -   [\_start](#_start)
    -   [\_stop](#_stop)
    -   [update](#update)
        -   [Parameters](#parameters-1)
    -   [name](#name)

## ServiceConsul

**Extends Service**

service building a bridge to consul

### Parameters

-   `args` **...any** 

### autostart

Start immediate

Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true

### \_start

Register the kronos service in consul

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** that fullfills on succesfull startup

### \_stop

Deregister the service from consul

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** that fullfills when the deregistering has finished

### update

Update service definition in consul

#### Parameters

-   `delay` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** time to wait before doing the unregister/register action

### name

Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 'consul'

# install

With [npm](http://npmjs.org) do:

```shell
npm install @kronos-integration/service-consul
```

# license

BSD-2-Clause