xauthmodule

1.0.1 • Public • Published

xauthmodule

NPM Module for authentication

Class Auth

  • contains main function and variables

Functions

signUp (take callbackFnx and return token)

signUp(signupfnx : callBackFnx){
    return {token}
}

signupfnx (Must return token)

signupfnx = () => {
    return token;
}

calculateHash (take password and return token)

calculateHash = (password) => {
    return hash;
}

createToken (take id,email,username? and return token)

createToken = (id,email,username?) => {
    return token;
}

Package Sidebar

Install

npm i xauthmodule

Weekly Downloads

8

Version

1.0.1

License

MIT

Unpacked Size

28.1 kB

Total Files

9

Last publish

Collaborators

  • deevanshu