Socket
Socket
Sign inDemoInstall

sane-auth

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sane-auth - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

CHANGELOG.md

6

generate/templates/server/api/controllers/AuthController.js

@@ -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) &nbsp; [Browse other machines](http://node-machine.org/machinepacks) &nbsp; [FAQ](http://node-machine.org/implementing/FAQ) &nbsp; [Newsgroup](https://groups.google.com/forum/?hl=en#!forum/node-machine)
### [Docs](http://node-machine.org/sane-auth) &nbsp; [Browse other machines](http://node-machine.org/machinepacks) &nbsp; [FAQ](http://node-machine.org/implementing/FAQ) &nbsp; [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 &nbsp; [![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 &nbsp; [![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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc