Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.
/ auth-validations Public archive

[NPM Package] Custom authentication validation module

Notifications You must be signed in to change notification settings

yhagio/auth-validations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

travis build codecov coverage version downloads MIT License semantic-release

Auth-Validations

This is a npm module that validates common inputs for user registration process.

Install

npm install auth-validations

In your javascript file,

var av = require('auth-validations');

API

validateEmail(email)

Return error message (String). If the error message length is 0, the validation passed successfully.

validatePassword(password)

Returns an array of error messages (String). If the array is empty, the validation passed successfully.

validateStringLength0to50(text)

Return error message (String). If the error message length is 0, the validation passed successfully.

About

[NPM Package] Custom authentication validation module

Resources

Stars

Watchers

Forks

Packages

No packages published