township-accounts
Node.js library for managing user accounts.
About
township-accounts is a high-level module based on township-auth, which manages authentication credentials, township-access, which manages authorization via access scopes, and township-token, which manages JWT tokens.
Install
npm install --save township-accounts
Usage
accounts
object by calling the townshipAccounts
constructor:
Create the var townshipAccounts = var level = var db = var accounts =
register
method:
Create an account with the var creds = email: 'hi@example.com' password: 'weee' accounts
login
method:
Log in with the var creds = email: 'hi@example.com' password: 'weee' accounts
logout
method:
Log out with the accounts
See more in the API documentation
Documentation
Examples
Contributing
Contributions are welcome! Please read the contributing guidelines first.
Conduct
It is important that this project contributes to a friendly, safe, and welcoming environment for all. Read this project's code of conduct
Changelog
Read about the changes to this project in CHANGELOG.md. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Contact
- issues – Please open issues in the issues queue
- twitter – Have a question? @sethdvincent
- email – Need in-depth support via paid contract? Send an email to sethvincent@gmail.com