Comparing version 0.3.0 to 0.3.1
@@ -29,3 +29,3 @@ var jwt = require('jsonwebtoken'); | ||
if (err) { | ||
res.badRequest({ | ||
return res.badRequest({ | ||
error: err | ||
@@ -35,3 +35,3 @@ }); | ||
if (!user || user.length < 1) { | ||
res.badRequest({ | ||
return res.badRequest({ | ||
error: 'No such user' | ||
@@ -43,3 +43,3 @@ }); | ||
if (err || !result) { | ||
res.badRequest({ | ||
return res.badRequest({ | ||
error: 'invalidPassword' | ||
@@ -46,0 +46,0 @@ }); |
{ | ||
"name": "sane-auth", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A Sane Stack Addon giving you basic OAauth2-JWT authentication for the full stack", | ||
@@ -33,8 +33,8 @@ "scripts": { | ||
], | ||
"testsUrl": "https://travis-ci.org/Globegitter/sane-auth" | ||
"testsUrl": "https://travis-ci.org/sane/sane-auth" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:Globegitter/sane-auth.git" | ||
"url": "git@github.com:sane/sane-auth.git" | ||
} | ||
} |
<h1> | ||
<a href="http://node-machine.org" title="Node-Machine public registry"><img alt="node-machine logo" title="Node-Machine Project" src="http://node-machine.org/images/machine-anthropomorph-for-white-bg.png" width="50" /></a> | ||
sane-jwt-auth | ||
sane-auth | ||
</h1> | ||
### [Docs](http://node-machine.org/sane-jwt-auth) [Browse other machines](http://node-machine.org/machinepacks) [FAQ](http://node-machine.org/implementing/FAQ) [Newsgroup](https://groups.google.com/forum/?hl=en#!forum/node-machine) | ||
### [Docs](http://node-machine.org/sane-auth) [Browse other machines](http://node-machine.org/machinepacks) [FAQ](http://node-machine.org/implementing/FAQ) [Newsgroup](https://groups.google.com/forum/?hl=en#!forum/node-machine) | ||
@@ -11,8 +11,14 @@ A Sane Stack Addon giving you basic OAauth2-JWT authentication for the full stack | ||
## Installation [![NPM version](https://badge.fury.io/js/sane-jwt-auth.svg)](http://badge.fury.io/js/sane-auth) [![Build Status](https://travis-ci.org/mikermcneil/sane-jwt-auth.png?branch=master)](https://travis-ci.org/mikermcneil/sane-auth) | ||
## Installation [![NPM version](https://badge.fury.io/js/sane-auth.svg)](http://badge.fury.io/js/sane-auth) [![Build Status](https://travis-ci.org/globegitter/sane-auth.png?branch=master)](https://travis-ci.org/globegitter/sane-auth) | ||
If you want to to test this addon you first need to install the latest sane-cli with addon support: | ||
```sh | ||
$ sane install sane-auth | ||
npm install -g sane@alpha | ||
``` | ||
Then within your SANE project: | ||
```sh | ||
sane install sane-auth | ||
``` | ||
## Usage | ||
@@ -19,0 +25,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21378
27
36