Node Email Verificator
NEV is a simplified method of sending quick verification code to email for verification.
NEV Functions
- config
- send
- verify
config
nev;
The config function takes 3 parameters:
- service: The host for sending mail (e.g gmail, yahoo)
- user: Users email (e.g example@gmail.com)
- pass: The users password (e.g passw0rd)
If you are using gmail, you have to allow Less Secure App
send
When a post request for verification is made, the send function delivers the confirmation code to the email parameter
nev;
The send function takes a parameters:
- email: The client's email
verify
When a post request for confirmation is made, the verify function confirms the confirmation code from the client
nev;
The send function takes a parameters:
- code: The confirmation code from the client
Example with express
const express = ;const nev = ; const server = ; nev; server server server
Contribution
Contribute on github Here