@haelp/auth
v1.2.9
Published
This is a simple authentication library.
Downloads
8
Readme
@haelp/auth
This is a simple authentication library.
Installation
Use the package manager npm to install @haelp/auth.
npm install @haelp/auth
Usage
import { Auth } from '@haelp/auth';
const auth = new Auth({
domain: ".example.com",
database: {
uri: process.env.MONGODB_URI,
},
jwt: {
secret: process.env.JWT_SECRET,
}
});