Skip to content

Commit fd7d659

Browse files
authored
BE-6600 Added new API commands for account switching (#85)
* Added new API commands for account switching * updated the protobuff files * v16.0.84
1 parent 6e2b5bd commit fd7d659

File tree

6 files changed

+8299
-31
lines changed

6 files changed

+8299
-31
lines changed

keeperapi/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

keeperapi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@keeper-security/keeperapi",
33
"description": "Keeper API Javascript SDK",
4-
"version": "16.0.83",
4+
"version": "16.0.84",
55
"browser": "dist/index.es.js",
66
"main": "dist/index.cjs.js",
77
"types": "dist/node/index.d.ts",

keeperapi/src/auth.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export type LoginPayload = {
8080
resumeSessionOnly?: boolean
8181
givenSessionToken?: string
8282
ecOnly?: boolean
83+
fromSessionToken?: Uint8Array | null
8384
}
8485

8586
export enum UserType {
@@ -276,6 +277,7 @@ export class Auth {
276277
resumeSessionOnly = false,
277278
givenSessionToken = undefined,
278279
ecOnly = false,
280+
fromSessionToken = undefined
279281
}: Partial<LoginPayload>
280282
) {
281283
this._username = username || this.options.sessionStorage?.lastUsername || ''
@@ -321,7 +323,8 @@ export class Auth {
321323
messageSessionUid: this.messageSessionUid,
322324
loginMethod: loginMethod,
323325
cloneCode: await this.options.sessionStorage?.getCloneCode(this.options.host as KeeperEnvironment, this._username),
324-
v2TwoFactorToken: v2TwoFactorToken
326+
v2TwoFactorToken: v2TwoFactorToken,
327+
fromSessionToken,
325328
})
326329
if (loginType !== LoginType.NORMAL && !!loginType) {
327330
startLoginRequest.loginType = loginType

0 commit comments

Comments
 (0)