dapp-web-email-verification-service

0.0.1 • Public • Published

Notification service

When "signer / off-chain join authorization" is enabled in a project, joining a crowdtainer project requires an e-mail confirmation.

This service helps with the "join project" flow, at the step where the user is "verified" by sending a confirmation code (to check the existance/ownership of their e-mail).

This service reads join request entries from the redis database and dispaches the respective e-mail along with the user's "one time password" code.

Later on, the user then enters this code during the project's join process, and the code is verified in the service provider's backend process to match the provided e-mail before emitting an authorization so that the user can join the project's smart contract.

Installation / running without docker

# Make sure you are in the plugin root folder (cd plugins/notifications/)

# Copy and edit the .env file accordingly
cp .env.example .env

# Install dependencies
npm install

# Build
npm run build

# Run
node -r dotenv/config dist/server.js

# To allow invalid https certs (during development):
NODE_ENV=development node -r dotenv/config dist/server.js

Readme

Keywords

none

Package Sidebar

Install

npm i dapp-web-email-verification-service

Weekly Downloads

4

Version

0.0.1

License

none

Unpacked Size

14.6 kB

Total Files

9

Last publish

Collaborators

  • racnela