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

@accounts/database-manager

Package Overview
Dependencies
Maintainers
6
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/database-manager - npm Package Compare versions

Comparing version 0.25.1 to 0.26.0-alpha.0

7

lib/database-manager.d.ts

@@ -34,2 +34,9 @@ import { DatabaseInterface } from '@accounts/types';

get setUserDeactivated(): DatabaseInterface['setUserDeactivated'];
get findAuthenticatorById(): DatabaseInterface['findAuthenticatorById'];
get findUserAuthenticators(): DatabaseInterface['findUserAuthenticators'];
get createAuthenticator(): DatabaseInterface['createAuthenticator'];
get activateAuthenticator(): DatabaseInterface['activateAuthenticator'];
get createMfaChallenge(): DatabaseInterface['createMfaChallenge'];
get findMfaChallengeByToken(): DatabaseInterface['findMfaChallengeByToken'];
get deactivateMfaChallenge(): DatabaseInterface['deactivateMfaChallenge'];
}

@@ -228,2 +228,58 @@ "use strict";

});
Object.defineProperty(DatabaseManager.prototype, "findAuthenticatorById", {
// Return the findAuthenticatorById function from the userStorage
get: function () {
return this.userStorage.findAuthenticatorById.bind(this.userStorage);
},
enumerable: true,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "findUserAuthenticators", {
// Return the findUserAuthenticators function from the userStorage
get: function () {
return this.userStorage.findUserAuthenticators.bind(this.userStorage);
},
enumerable: true,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "createAuthenticator", {
// Return the createAuthenticator function from the userStorage
get: function () {
return this.userStorage.createAuthenticator.bind(this.userStorage);
},
enumerable: true,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "activateAuthenticator", {
// Return the activateAuthenticator function from the userStorage
get: function () {
return this.userStorage.activateAuthenticator.bind(this.userStorage);
},
enumerable: true,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "createMfaChallenge", {
// Return the createMfaChallenge function from the userStorage
get: function () {
return this.userStorage.createMfaChallenge.bind(this.userStorage);
},
enumerable: true,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "findMfaChallengeByToken", {
// Return the findMfaChallengeByToken function from the userStorage
get: function () {
return this.userStorage.findMfaChallengeByToken.bind(this.userStorage);
},
enumerable: true,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "deactivateMfaChallenge", {
// Return the deactivateMfaChallenge function from the userStorage
get: function () {
return this.userStorage.deactivateMfaChallenge.bind(this.userStorage);
},
enumerable: true,
configurable: true
});
return DatabaseManager;

@@ -230,0 +286,0 @@ }());

6

package.json
{
"name": "@accounts/database-manager",
"version": "0.25.1",
"version": "0.26.0-alpha.0",
"description": "Accounts Database Manager, allow the use of separate databases for session and user",

@@ -44,6 +44,6 @@ "main": "lib/index.js",

"dependencies": {
"@accounts/types": "^0.25.1",
"@accounts/types": "^0.26.0-alpha.0",
"tslib": "1.10.0"
},
"gitHead": "18c02edee2a382236923b4b6c221362dba3c7bb9"
"gitHead": "0e9eb3bcdf3c5416555647d97c91b817b07850f7"
}

@@ -162,2 +162,37 @@ import { DatabaseInterface, DatabaseInterfaceSessions } from '@accounts/types';

}
// Return the findAuthenticatorById function from the userStorage
public get findAuthenticatorById(): DatabaseInterface['findAuthenticatorById'] {
return this.userStorage.findAuthenticatorById.bind(this.userStorage);
}
// Return the findUserAuthenticators function from the userStorage
public get findUserAuthenticators(): DatabaseInterface['findUserAuthenticators'] {
return this.userStorage.findUserAuthenticators.bind(this.userStorage);
}
// Return the createAuthenticator function from the userStorage
public get createAuthenticator(): DatabaseInterface['createAuthenticator'] {
return this.userStorage.createAuthenticator.bind(this.userStorage);
}
// Return the activateAuthenticator function from the userStorage
public get activateAuthenticator(): DatabaseInterface['activateAuthenticator'] {
return this.userStorage.activateAuthenticator.bind(this.userStorage);
}
// Return the createMfaChallenge function from the userStorage
public get createMfaChallenge(): DatabaseInterface['createMfaChallenge'] {
return this.userStorage.createMfaChallenge.bind(this.userStorage);
}
// Return the findMfaChallengeByToken function from the userStorage
public get findMfaChallengeByToken(): DatabaseInterface['findMfaChallengeByToken'] {
return this.userStorage.findMfaChallengeByToken.bind(this.userStorage);
}
// Return the deactivateMfaChallenge function from the userStorage
public get deactivateMfaChallenge(): DatabaseInterface['deactivateMfaChallenge'] {
return this.userStorage.deactivateMfaChallenge.bind(this.userStorage);
}
}

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