Skip to content

Commit

Permalink
chore: add missing CHNAGELOG IaC via LS (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cata authored Aug 13, 2024
1 parent 8be35be commit a367a93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Snyk Security Changelog

## [2.17.0]
- render IaC via Language Server

## [2.16.3]
- fix readability of `code` elements within the **overview** section when using high-contrast themes (both dark and light). Text color now matches the background.

Expand Down
8 changes: 6 additions & 2 deletions src/snyk/base/services/authenticationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,17 @@ export class AuthenticationService implements IAuthenticationService {
oauthToken.access_token.length > 0 &&
Date.parse(oauthToken.expiry) > Date.now() &&
oauthToken.refresh_token.length > 0;
this.logger.debug(`Token ${token} parsed`);
this.logger.debug(`Token ${this.maskToken(token)} parsed`);
} catch (e) {
this.logger.warn(`Token ${token} is not a valid uuid or json string: ${e}`);
this.logger.warn(`Token ${this.maskToken(token)} is not a valid uuid or json string: ${e}`);
}
return valid;
}

private maskToken(token: string): string {
return `${token.slice(0, 4)}****${token.slice(-4)}`;
}

async updateToken(token: string): Promise<void> {
if (!token) {
await this.initiateLogout();
Expand Down

0 comments on commit a367a93

Please sign in to comment.