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-codesor npm:
npm install ioredis@^4 @soufantech/ephemeral-codesUsage 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.examplefile to an.envfile in the same directory. - Run
docker-compose upto spin up a redis container. - Run
yarn test(ornpm run test) to execute the tests.