Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/leon-win/node-auth-tokens
- Owner: leon-win
- License: mit
- Created: 2019-10-17T17:15:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-08T22:12:51.000Z (about 2 months ago)
- Last Synced: 2024-11-08T23:20:02.214Z (about 2 months ago)
- Topics: access-token, auth, jwt, nodejs, refresh-token
- Language: JavaScript
- Size: 598 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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