simple-auth-client
v1.0.7
Published
super simple auth for browser
Downloads
5
Readme
simple-auth-client
Don't use!! It's still dev
Features
- Server unnecessary
- Simple authentication system that operates only on the browser side
- Not secure
Installation
Donwload Manually
Bower
$ bower install simple-auth-client --save
NPM
$ npm install simple-auth-client --save
Usage
Load from HTML
<script src='/lib/simple-auth-client.min.js'></script>
<script>
SimpleAuthClient.start({
password: 'foo'
});
</script>
With a module system
import SimpleAuthClient from 'simple-auth-client'
SimpleAuthClient.start({
password: 'foo'
});
Options
now writing...
Development
# install
$ npm install
# flow-typed CLI installed
$ npm install -g flow-typed
# flow-typed install
$ flow-typed install
# serve livereload and watch at http://localhost:8080/
$ npm run watch
# build for production
$ npm run build