Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 463 Bytes

File metadata and controls

31 lines (22 loc) · 463 Bytes

@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,
	}
});

License

MIT