Skip to content

Commit 070af1b

Browse files
committed
allow set of session token and reset token on logout
1 parent 0d5046e commit 070af1b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

keeperapi/src/auth.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ export class Auth {
234234
platform.unloadKeys()
235235
await this.executeRestAction(logoutV3Message())
236236
await this.idpLogout()
237+
this._sessionToken = ''
237238
}
238239

239240
async connect() {
@@ -1040,6 +1041,10 @@ export class Auth {
10401041
this._accountSummaryVersion = version
10411042
}
10421043

1044+
setSessionToken(token: string) {
1045+
this._sessionToken = token
1046+
}
1047+
10431048
// async executeCommand<Command extends KeeperCommand>(command: Command): Promise<Command["response"]> {
10441049
// if (!command.username) {
10451050
// command.username = this._username;

0 commit comments

Comments
 (0)