# kauth-sdk-node

Kauth-sdk-node, as base stone of series of concrete SDK for egg or any other nodejs web framework.

It provides authentications like BUC authentication, alipay miniprogram authentication, and some other authentication abilities.

## kauthApi

You can use it to request kauth

```js
import { KauthApi } from 'kauth-sdk-node';
```

## KflowApi

You can use it to request kflow

```js
import { KflowApi } from 'kauth-sdk-node';
```

## GoogleAuthenticator

You can use it to authenticate user info by Google oauth2

```js
import { GoogleAuthenticator } from 'kauth-sdk-node';
```

## MoziAUthenticator

You can use it to authenticate user info by Mozi oauth2

```js
import { MoziAuthenticator } from 'kauth-sdk-node';
```

## JsonWebTokenAuthenticationProvider

You can use it to verify jwt or create a jwt by authentication information

```js
import { JsonWebTokenAuthenticationProvider } from 'kauth-sdk-node';
```

## Publish

```bash
# 1. update version
$ npm version minor

> Or you can update version by patch
$ npm version patch

# 2. build and publish
$ npm publish
```
