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

7

lib/accounts-client.d.ts

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

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

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

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

@@ -61,5 +61,6 @@ * Refresh the user session

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

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

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

@@ -264,7 +266,10 @@ });

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

@@ -271,0 +276,0 @@ AccountsClient.prototype.getTokenKey = function (tokenName) {

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

import { LoginResult, ImpersonationResult, CreateUser, User, CreateUserResult, Authenticator } from '@accounts/types';
import { AuthenticationResult, ImpersonationResult, CreateUser, User, CreateUserResult, Authenticator, LoginResult } from '@accounts/types';
import { AccountsClient } from './accounts-client';

@@ -11,3 +11,3 @@ export interface TransportInterface extends TransportMfaInterface {

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

@@ -33,4 +33,5 @@ getUser(): Promise<User>;

mfaAssociate(type: string): Promise<any>;
authenticators(): Promise<Authenticator[]>;
authenticators(mfaToken?: string): Promise<Authenticator[]>;
mfaChallenge(mfaToken: string, authenticatorId: string): Promise<any>;
}
export {};
{
"name": "@accounts/client",
"version": "0.26.0-alpha.0",
"version": "0.26.0-alpha.1",
"description": "Fullstack authentication and accounts-management",

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

"dependencies": {
"@accounts/types": "^0.26.0-alpha.0",
"@accounts/types": "^0.26.0-alpha.1",
"jwt-decode": "2.2.0",
"tslib": "1.10.0"
},
"gitHead": "0e9eb3bcdf3c5416555647d97c91b817b07850f7"
"gitHead": "ce6f04495e4de9ba5dcb04396aada2bb31e5880b"
}

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