https://github.com/jonathanlb/simple-auth
Simple authentication and authorization library.
https://github.com/jonathanlb/simple-auth
Last synced: over 1 year ago
JSON representation
Simple authentication and authorization library.
- Host: GitHub
- URL: https://github.com/jonathanlb/simple-auth
- Owner: jonathanlb
- Created: 2019-08-23T21:33:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T21:23:29.000Z (about 2 years ago)
- Last Synced: 2025-01-24T13:28:20.771Z (over 1 year ago)
- Language: TypeScript
- Size: 1.52 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimpleAuth
SimpleAuth is a [sqlite-based](https://www.npmjs.com/package/sqlite3)
user-authentication package.
Users can authenticate with a password that is checked against the
password hash stored at the server.
Upon success, the user receives a token that can be used in leiu of
the password and database access for a period of time (24 hours by default).
## Password Recovery
Users can reset their passwords via request using their id, name, or email.
Upon request, the server will deliver a new password by invoking
the `SimpleAuth.deliverPasswordReset(userId: number, passwd: string)` method,
whose implementation must be supplied by the installation.
We suggest using [nodemailer](https://www.npmjs.com/package/nodemailer) to
deliver.