Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Conform more code to strictNullChecks and noImplicitAny #11156

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jun 28, 2023

For element-hq/element-web#21967


This change is marked as an internal change (Task), so will not be included in the changelog.

@t3chguy t3chguy added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Jun 28, 2023
@t3chguy t3chguy self-assigned this Jun 28, 2023
@@ -686,14 +686,22 @@
// if we couldn't save to indexedDB, fall back to localStorage. We
// store the access token unencrypted since localStorage only saves
// strings.
localStorage.setItem("mx_access_token", credentials.accessToken);
if (!!credentials.accessToken) {
localStorage.setItem("mx_access_token", credentials.accessToken);

Check failure

Code scanning / CodeQL

Clear text storage of sensitive information

This stores sensitive data returned by [a call to sendLoginRequest](1) as clear text.
}
localStorage.setItem("mx_has_pickle_key", String(true));
} else {
try {
await StorageManager.idbSave("account", "mx_access_token", credentials.accessToken);
} catch (e) {
localStorage.setItem("mx_access_token", credentials.accessToken);
if (!!credentials.accessToken) {
localStorage.setItem("mx_access_token", credentials.accessToken);

Check failure

Code scanning / CodeQL

Clear text storage of sensitive information

This stores sensitive data returned by [a call to sendLoginRequest](1) as clear text.
@t3chguy t3chguy marked this pull request as ready for review June 28, 2023 12:59
@t3chguy t3chguy requested a review from a team as a code owner June 28, 2023 12:59
Copy link
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@t3chguy t3chguy merged commit 6836a5f into develop Jun 28, 2023
@t3chguy t3chguy deleted the t3chguy/types/28jun23 branch June 28, 2023 13:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants