Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-auth-rest-server

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-auth-rest-server - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

.npmignore

6

lib/node-auth-rest-server.js
'use strict';
var express = require('express');
var bcrypt = require('bcrypt-nodejs');

@@ -11,3 +10,2 @@ var bodyParser = require('body-parser');

var router = express.Router();
app.post('/api/sessions/get_auth_token', getAuthToken);

@@ -43,3 +41,3 @@

authRestMethods.userByEmail(email, function(err, user){
if (err) throw err;
if (err) return next(err);
if(!user || !bcrypt.compareSync(password, user.password_digest)){

@@ -59,3 +57,3 @@

issueAuthToken(user, function(err, authToken){
if (err) throw err;
if (err) return next(err);
res.json({token: authToken.key, expires: authToken.expires_at});

@@ -62,0 +60,0 @@ });

@@ -5,3 +5,3 @@ {

"description": "Provides a basic token authentication, and auto generation of authentication token",
"version": "0.1.1",
"version": "0.1.2",
"repository": {

@@ -8,0 +8,0 @@ "url": ""

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