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

@accounts/client

Package Overview
Dependencies
Maintainers
5
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/client - npm Package Compare versions

Comparing version 0.28.0-alpha.1 to 0.28.0

9

lib/accounts-client.d.ts

@@ -1,2 +0,2 @@

import { Tokens, ImpersonationResult, User, AuthenticationResult } from '@accounts/types';
import { LoginResult, Tokens, ImpersonationResult, User } from '@accounts/types';
import { TransportInterface } from './transport-interface';

@@ -32,3 +32,3 @@ import { AccountsClientOptions } from './types';

[key: string]: any;
}): Promise<AuthenticationResult>;
}): Promise<LoginResult>;
/**

@@ -61,8 +61,3 @@ * Refresh the user session

logout(): Promise<void>;
mfaChallenge(mfaToken: string, authenticatorId: string): Promise<any>;
mfaAssociate(type: string, params?: any): Promise<any>;
mfaAssociateByMfaToken(mfaToken: string, type: string, params?: any): Promise<any>;
authenticators(): Promise<import("@accounts/types").Authenticator[]>;
authenticatorsByMfaToken(mfaToken: string): Promise<import("@accounts/types").Authenticator[]>;
private getTokenKey;
}

@@ -119,8 +119,6 @@ "use strict";

response = _a.sent();
if (!('tokens' in response)) return [3 /*break*/, 3];
return [4 /*yield*/, this.setTokens(response.tokens)];
case 2:
_a.sent();
_a.label = 3;
case 3: return [2 /*return*/, response];
return [2 /*return*/, response];
}

@@ -267,17 +265,2 @@ });

};
AccountsClient.prototype.mfaChallenge = function (mfaToken, authenticatorId) {
return this.transport.mfaChallenge(mfaToken, authenticatorId);
};
AccountsClient.prototype.mfaAssociate = function (type, params) {
return this.transport.mfaAssociate(type, params);
};
AccountsClient.prototype.mfaAssociateByMfaToken = function (mfaToken, type, params) {
return this.transport.mfaAssociateByMfaToken(mfaToken, type, params);
};
AccountsClient.prototype.authenticators = function () {
return this.transport.authenticators();
};
AccountsClient.prototype.authenticatorsByMfaToken = function (mfaToken) {
return this.transport.authenticatorsByMfaToken(mfaToken);
};
AccountsClient.prototype.getTokenKey = function (tokenName) {

@@ -284,0 +267,0 @@ return this.options.tokenStoragePrefix + ":" + tokenName;

@@ -1,4 +0,4 @@

import { LoginResult, ImpersonationUserIdentity, ImpersonationResult, CreateUser, User, CreateUserResult, Authenticator, AuthenticationResult } from '@accounts/types';
import { LoginResult, ImpersonationUserIdentity, ImpersonationResult, CreateUser, User, CreateUserResult } from '@accounts/types';
import { AccountsClient } from './accounts-client';
export interface TransportInterface extends TransportMfaInterface {
export interface TransportInterface {
client: AccountsClient;

@@ -11,3 +11,3 @@ createUser(user: CreateUser): Promise<CreateUserResult>;

[key: string]: string | object;
}): Promise<AuthenticationResult>;
}): Promise<LoginResult>;
logout(): Promise<void>;

@@ -24,12 +24,1 @@ getUser(): Promise<User>;

}
/**
* MFA related operations
*/
interface TransportMfaInterface {
authenticators(): Promise<Authenticator[]>;
authenticatorsByMfaToken(mfaToken?: string): Promise<Authenticator[]>;
mfaAssociate(type: string, params?: any): Promise<any>;
mfaAssociateByMfaToken(mfaToken: string, type: string, params?: any): Promise<any>;
mfaChallenge(mfaToken: string, authenticatorId: string): Promise<any>;
}
export {};
{
"name": "@accounts/client",
"version": "0.28.0-alpha.1",
"version": "0.28.0",
"description": "Fullstack authentication and accounts-management",

@@ -56,7 +56,7 @@ "main": "lib/index.js",

"dependencies": {
"@accounts/types": "^0.28.0-alpha.1",
"@accounts/types": "^0.28.0",
"jwt-decode": "2.2.0",
"tslib": "2.0.0"
},
"gitHead": "cdeb32e488cefb4042cf1fe092d92ea73a87c64f"
"gitHead": "79a8cdcd3380e5ecb0eb2d5c016aa39e719894f9"
}

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