Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leon-win/node-auth-tokens

Auth library for Node.js applications based on access and refresh tokens approach
https://github.com/leon-win/node-auth-tokens

access-token auth jwt nodejs refresh-token

Last synced: about 2 months ago
JSON representation

Auth library for Node.js applications based on access and refresh tokens approach

Awesome Lists containing this project

README

        

# node-auth-tokens

[![npm](https://img.shields.io/npm/v/auth-tokens?logo=npm&style=flat-square)](https://www.npmjs.com/package/auth-tokens)
[![Code coverage](https://img.shields.io/codecov/c/github/leon-win/node-auth-tokens?logo=codecov&style=flat-square)](https://codecov.io/gh/leon-win/node-auth-tokens)
[![Code style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?logo=prettier&style=flat-square)](https://prettier.io)
[![License: MIT](https://img.shields.io/github/license/leon-win/node-auth-tokens?style=flat-square)](http://opensource.org/licenses/MIT)

Auth library for Node.js applications based on access and refresh tokens approach

## Install

```sh
$ npm install auth-tokens
```

## Example

To launch the [Node.js HTTP server based example](example), clone the repository, install dependencies and run the `example` command:

```sh
$ git clone https://github.com/leon-win/node-auth-tokens.git
$ cd node-auth-tokens
$ npm install
$ npm run example
```

> **Note:** example server uses memory storage (JavaScript array) and **is not suitable for production**.

## To do list

List of planned works is in the [Development plan](https://github.com/leon-win/node-auth-tokens/projects/1).

## License

[MIT](LICENSE)

Copyright (c) 2019-present, Leonid Vinogradov