Skip to content

Commit

Permalink
[PM-3647] Change order of timeout set. (#6723)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebispo5 authored Nov 7, 2023
1 parent 4fe3d36 commit 1669f35
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ export class VaultTimeoutSettingsService implements VaultTimeoutSettingsServiceA
) {}

async setVaultTimeoutOptions(timeout: number, action: VaultTimeoutAction): Promise<void> {
await this.stateService.setVaultTimeout(timeout);

// We swap these tokens from being on disk for lock actions, and in memory for logout actions
// Get them here to set them to their new location after changing the timeout action and clearing if needed
const token = await this.tokenService.getToken();
const refreshToken = await this.tokenService.getRefreshToken();
const clientId = await this.tokenService.getClientId();
const clientSecret = await this.tokenService.getClientSecret();

await this.stateService.setVaultTimeout(timeout);

const currentAction = await this.stateService.getVaultTimeoutAction();
if (
(timeout != null || timeout === 0) &&
Expand Down

0 comments on commit 1669f35

Please sign in to comment.