0.1.2 • Published 6 years ago

slicknode-auth-email-password v0.1.2

Weekly downloads
56
License
MIT
Repository
github
Last release
6 years ago

Slicknode Email / Password Authenticator

Authenticator for slicknode-client to authenticate a user with email address and password.

Installation

To use this authenticator, install the slicknode module in your project:

slicknode module add auth-email-password

Then install the authenticator in your (frontend) application:

 npm install -S slicknode-auth-email-password

Usage

import login from 'slicknode-auth-email-password';
import Client from 'slicknode-client';

const email = 'info@slicknode.com';
const password = '12345';
const client = new Client({
  endpoint: 'http://myproject.slicknode.com/'
});
client.authenticate(login(email, password))
  .then(() => {
    console.log('Login was successful');
  })
  .catch(err => {
    console.log('Login failed', err.message);
  });
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago