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.0 to 0.26.0-alpha.1

lib/types/authentication-result.d.ts

1

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';

@@ -12,0 +13,0 @@ export * from './types/login-user-identity';

import { DatabaseInterface } from '../database-interface';
import { Authenticator } from './authenticator';
import { MfaChallenge } from '../mfa-challenge/mfa-challenge';
export interface AuthenticatorService {

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

setStore(store: DatabaseInterface): void;
challenge?(mfaChallenge: MfaChallenge, authenticator: Authenticator): Promise<any>;
associate(userId: string, params: any): Promise<any>;

@@ -9,0 +11,0 @@ authenticate(authenticator: Authenticator, params: any): Promise<boolean>;

@@ -6,3 +6,4 @@ import { CreateMfaChallenge } from './create-mfa-challenge';

findMfaChallengeByToken(token: string): Promise<MfaChallenge | null>;
updateMfaChallenge(mfaChallengeId: string, data: any): Promise<void>;
deactivateMfaChallenge(mfaChallengeId: string): Promise<void>;
}

4

package.json
{
"name": "@accounts/types",
"version": "0.26.0-alpha.0",
"version": "0.26.0-alpha.1",
"description": "Accounts-js Types",

@@ -51,3 +51,3 @@ "main": "lib/index.js",

},
"gitHead": "0e9eb3bcdf3c5416555647d97c91b817b07850f7"
"gitHead": "ce6f04495e4de9ba5dcb04396aada2bb31e5880b"
}

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

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

@@ -12,0 +13,0 @@ export * from './types/login-user-identity';

import { DatabaseInterface } from '../database-interface';
import { Authenticator } from './authenticator';
import { MfaChallenge } from '../mfa-challenge/mfa-challenge';

@@ -8,2 +9,3 @@ export interface AuthenticatorService {

setStore(store: DatabaseInterface): void;
challenge?(mfaChallenge: MfaChallenge, authenticator: Authenticator): Promise<any>;
associate(userId: string, params: any): Promise<any>;

@@ -10,0 +12,0 @@ authenticate(authenticator: Authenticator, params: any): Promise<boolean>;

@@ -9,3 +9,5 @@ import { CreateMfaChallenge } from './create-mfa-challenge';

updateMfaChallenge(mfaChallengeId: string, data: any): Promise<void>;
deactivateMfaChallenge(mfaChallengeId: string): Promise<void>;
}
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