README
AzAuth JS
A JavaScript implementation made in TypeScript of the Azuriom Auth API.
Installation
npm install azuriom-auth
Usage
const AzuriomAuth = require('azuriom-auth');
async function login(email, password) {
const authenticator = new AzuriomAuth.Authenticator('<url of your website>');
try {
const user = await authenticator.auth(email, password);
console.log(`Logged in with ${user.email}`);
} catch (e) {
console.log(e);
}
}