@accounts/client
Advanced tools
Comparing version 0.26.0-alpha.0 to 0.26.0-alpha.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27739
440