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

@accounts/types

Package Overview
Dependencies
Maintainers
6
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/types - npm Package Compare versions

Comparing version 0.29.0 to 0.30.0-alpha.0

lib/types/authentication-result.d.ts

7

lib/index.d.ts

@@ -10,2 +10,3 @@ export * from './types/database-interface';

export * from './types/login-result';
export * from './types/authentication-result';
export * from './types/impersonation-result';

@@ -20,1 +21,7 @@ export * from './types/login-user-identity';

export * from './types/services/password/login-user';
export * from './types/mfa/database-interface';
export * from './types/mfa/authenticator';
export * from './types/mfa/create-authenticator';
export * from './types/mfa/mfa-challenge';
export * from './types/mfa/create-mfa-challenge';
export * from './types/mfa/authenticator-service';

@@ -13,2 +13,3 @@ "use strict";

tslib_1.__exportStar(require("./types/login-result"), exports);
tslib_1.__exportStar(require("./types/authentication-result"), exports);
tslib_1.__exportStar(require("./types/impersonation-result"), exports);

@@ -23,2 +24,8 @@ tslib_1.__exportStar(require("./types/login-user-identity"), exports);

tslib_1.__exportStar(require("./types/services/password/login-user"), exports);
tslib_1.__exportStar(require("./types/mfa/database-interface"), exports);
tslib_1.__exportStar(require("./types/mfa/authenticator"), exports);
tslib_1.__exportStar(require("./types/mfa/create-authenticator"), exports);
tslib_1.__exportStar(require("./types/mfa/mfa-challenge"), exports);
tslib_1.__exportStar(require("./types/mfa/create-mfa-challenge"), exports);
tslib_1.__exportStar(require("./types/mfa/authenticator-service"), exports);
//# sourceMappingURL=index.js.map

3

lib/types/authentication-service.d.ts
import { User } from './user';
import { DatabaseInterface } from './database-interface';
import { ConnectionInformations } from './connection-informations';
export interface AuthenticationService<CustomUser extends User = User> {

@@ -7,3 +8,3 @@ server: any;

setStore(store: DatabaseInterface): void;
authenticate(params: any): Promise<CustomUser | null>;
authenticate(params: any, infos: ConnectionInformations): Promise<CustomUser | null>;
}

@@ -5,3 +5,4 @@ import { User } from './user';

import { DatabaseInterfaceServicePassword } from './services/password/database-interface';
export interface DatabaseInterface<CustomUser extends User = User> extends DatabaseInterfaceSessions, DatabaseInterfaceServicePassword<CustomUser> {
import { DatabaseInterfaceMfa } from './mfa/database-interface';
export interface DatabaseInterface<CustomUser extends User = User> extends DatabaseInterfaceSessions, DatabaseInterfaceServicePassword<CustomUser>, DatabaseInterfaceMfa {
findUserById(userId: string): Promise<CustomUser | null>;

@@ -8,0 +9,0 @@ createUser(user: CreateUser): Promise<string>;

{
"name": "@accounts/types",
"version": "0.29.0",
"version": "0.30.0-alpha.0",
"description": "Accounts-js Types",

@@ -47,11 +47,11 @@ "main": "lib/index.js",

"dependencies": {
"tslib": "2.0.0"
"tslib": "2.0.1"
},
"devDependencies": {
"@types/jest": "25.2.3",
"@types/node": "14.0.14",
"jest": "26.0.1",
"@types/jest": "26.0.9",
"@types/node": "14.0.27",
"jest": "26.3.0",
"rimraf": "3.0.2"
},
"gitHead": "fefb328a5388404f7f3c725db666321313e2b6ce"
"gitHead": "a46c50f8de6d15641bfb2c7dbe02cc12f8bbcace"
}

@@ -10,2 +10,3 @@ export * from './types/database-interface';

export * from './types/login-result';
export * from './types/authentication-result';
export * from './types/impersonation-result';

@@ -20,1 +21,7 @@ export * from './types/login-user-identity';

export * from './types/services/password/login-user';
export * from './types/mfa/database-interface';
export * from './types/mfa/authenticator';
export * from './types/mfa/create-authenticator';
export * from './types/mfa/mfa-challenge';
export * from './types/mfa/create-mfa-challenge';
export * from './types/mfa/authenticator-service';
import { User } from './user';
import { DatabaseInterface } from './database-interface';
import { ConnectionInformations } from './connection-informations';

@@ -11,3 +12,3 @@ // TODO : Fix circular dependency for better type checking

setStore(store: DatabaseInterface): void;
authenticate(params: any): Promise<CustomUser | null>;
authenticate(params: any, infos: ConnectionInformations): Promise<CustomUser | null>;
}

@@ -5,6 +5,8 @@ import { User } from './user';

import { DatabaseInterfaceServicePassword } from './services/password/database-interface';
import { DatabaseInterfaceMfa } from './mfa/database-interface';
export interface DatabaseInterface<CustomUser extends User = User>
extends DatabaseInterfaceSessions,
DatabaseInterfaceServicePassword<CustomUser> {
DatabaseInterfaceServicePassword<CustomUser>,
DatabaseInterfaceMfa {
// Find user by identity fields

@@ -11,0 +13,0 @@ findUserById(userId: string): Promise<CustomUser | null>;

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