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

authmaker-common

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authmaker-common - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

25

models/user.js

@@ -21,2 +21,3 @@ var mongoose = require('mongoose');

password: String,
termsAccepted: Boolean,

@@ -79,2 +80,4 @@ //Install details - temporary during first install for an account

metaData: mongoose.Schema.Types.Mixed,
externalIdentities: [{ type: mongoose.Schema.Types.ObjectId, ref: 'ExternalIdentity' }]

@@ -86,2 +89,13 @@

userSchema.index({
username: 1
});
userSchema.index({
username: 1,
clientId: 1
}, {
unique: true
});
userSchema.methods.getAccounts = function() {

@@ -118,13 +132,2 @@ //return a (promise for) list of accounts that this user is a part of

userSchema.index({
username: 1
});
userSchema.index({
username: 1,
clientId: 1
}, {
unique: true
});
//protect against re-defining

@@ -131,0 +134,0 @@ if (mongoose.modelNames().indexOf(modelName) !== -1) {

{
"name": "authmaker-common",
"version": "1.0.2",
"version": "1.0.3",
"description": "Common aspects for all authmaker repos",

@@ -5,0 +5,0 @@ "main": "index.js",

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