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

https://github.com/soufantech/ephemeral-codes

Manages temporary codes for password recovery, user registration and other use-cases.
https://github.com/soufantech/ephemeral-codes

password-recovery redis temporary user-registration

Last synced: 6 months ago
JSON representation

Manages temporary codes for password recovery, user registration and other use-cases.

Awesome Lists containing this project

README

          





@soufantech/ephemeral-codes


Manages temporary codes for password recovery, user registration and other use cases.




[![jest-image]][jest-url] [![npm-image]][npm-url]

## ๐Ÿ’พ Installation:

@soufantech/ephemeral-codes depends on [ioredis](https://github.com/luin/ioredis) version ^4. Be sure to install it if you don't have it already in your project.

You can install this package (and ioredis) with yarn:

```console
yarn add ioredis@^4 @soufantech/ephemeral-codes
```

or npm:

```console
npm install ioredis@^4 @soufantech/ephemeral-codes
```

## ๐Ÿšด Usage:

Usage documentation hasn't been provided yet. Please, refer to the tests for usage examples.

## ๐Ÿ”ค API docs:

API documentation hasn't not been provided yet. Please, refer to the source code.

## ๐Ÿงช Testing:

1. Copy the contents of the `.env.example` file to an `.env` file in the same directory.
1. Run `docker-compose up` to spin up a redis container.
2. Run `yarn test` (or `npm run test`) to execute the tests.

---


Built with โค๏ธŽ by SouFan

[npm-image]: https://img.shields.io/npm/v/@soufantech/ephemeral-codes.svg?style=for-the-badge&logo=npm
[npm-url]: https://npmjs.org/package/@soufantech/ephemeral-codes "npm"

[jest-image]: https://img.shields.io/badge/tested_with-jest-99424f.svg?style=for-the-badge&logo=jest
[jest-url]: https://github.com/facebook/jest "jest"