1.5.0 • Published 3 years ago

@mattplaygamez/authentication-local v1.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

This is an Node.JS module. used for authentication. SEE INSTALL FOR THE INSTALLION AND HOW TO USE.

1: First import the module: const Authenticator = require('@mattplaygamez/authentication-local')

2: Make a new profile like this: const authenticator = new Authenticator();

3: If you want to register use this: Authenticator.register(email, password) Change email to the email from that account. the password too

4: If you want to login use this: if(!Authenticator.login(email, password) === true) return // type here the error

DISCLAIMER this is an local variable. If you restart you're server the data inside the variable is LOST.

If there are any issues or bugs go to: https://github.com/MattPlayGamez/auth/issues