Manages temporary codes for password recovery, user registration and other use cases.
@soufantech/ephemeral-codes depends on 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:
yarn add ioredis@^4 @soufantech/ephemeral-codes
or npm:
npm install ioredis@^4 @soufantech/ephemeral-codes
Usage documentation hasn't been provided yet. Please, refer to the tests for usage examples.
API documentation hasn't not been provided yet. Please, refer to the source code.
- Copy the contents of the
.env.example
file to an.env
file in the same directory. - Run
docker-compose up
to spin up a redis container. - Run
yarn test
(ornpm run test
) to execute the tests.
Built with ❤︎ by SouFan