getanthill Security Layer


Getting Started
First, you need install the package:
npm install -S @getanthill/sec
Then, your client can follow the steps to register or signin a
user to your app, then activate MFA validation.
const tokens = auth.getTokens(email, password);
const masterKey = otp.generateMasterKey();
const secretKey = otp.generateSecretFromMaster(masterKey);
const isValid = otp.verify('123456', secretKey);
const store = new Store(tokens.encryption, secretKey);
store.data = { hello: 'world' };
Roadmap