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.26.0-alpha.4 to 0.26.0

6

lib/index.d.ts

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

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

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

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

5

lib/types/connection-informations.d.ts
export interface ConnectionInformations {
ip?: string;
userAgent?: string;
ip?: string | null;
userAgent?: string | null;
[key: string]: any;
}

4

lib/types/database-interface.d.ts

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

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

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

@@ -6,6 +6,6 @@ export interface Session {

valid: boolean;
userAgent?: string;
ip?: string;
userAgent?: string | null;
ip?: string | null;
createdAt: string;
updatedAt: string;
}
{
"name": "@accounts/types",
"version": "0.26.0-alpha.4",
"version": "0.26.0",
"description": "Accounts-js Types",

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

"dependencies": {
"tslib": "1.10.0"
"tslib": "1.11.2"
},
"devDependencies": {
"@types/jest": "25.1.4",
"@types/node": "13.9.8",
"jest": "25.1.0",
"rimraf": "3.0.0"
"@types/jest": "25.2.1",
"@types/node": "13.13.5",
"jest": "26.0.1",
"rimraf": "3.0.2"
},
"gitHead": "df64531622ef97718abfe5ed5436873ddf58d164"
"gitHead": "403bd2ea58bc1116c061c5dc1b6e203e20ce2f1b"
}

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

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

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

export * from './types/services/password/login-user';
export * from './types/authenticator/authenticator-service';
export * from './types/authenticator/authenticator';
export * from './types/authenticator/create-authenticator';
export * from './types/mfa-challenge/create-mfa-challenge';
export * from './types/mfa-challenge/mfa-challenge';
export interface ConnectionInformations {
ip?: string;
userAgent?: string;
ip?: string | null;
userAgent?: string | null;
[key: string]: any;
}

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

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

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

@@ -6,6 +6,6 @@ export interface Session {

valid: boolean;
userAgent?: string;
ip?: string;
userAgent?: string | null;
ip?: string | null;
createdAt: string;
updatedAt: string;
}
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