Skip to content

[PB-6505] Use set user#2024

Open
TamaraFinogina wants to merge 6 commits into
masterfrom
use_setUser
Open

[PB-6505] Use set user#2024
TamaraFinogina wants to merge 6 commits into
masterfrom
use_setUser

Conversation

@TamaraFinogina

@TamaraFinogina TamaraFinogina commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Description

Removes the unused email field and switches to the setUser function instead of setting it directly in local storage.

Related Issues

Relates to PB-6505

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

unit tests

Additional Notes

setUser/getUser will be needed for adding encryption

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 6, 2026

Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: c73bbd4
Status: ✅  Deploy successful!
Preview URL: https://95698600.drive-web.pages.dev
Branch Preview URL: https://use-setuser.drive-web.pages.dev

View logs

@TamaraFinogina TamaraFinogina self-assigned this Jul 6, 2026
@TamaraFinogina TamaraFinogina marked this pull request as ready for review July 6, 2026 16:56
}

function setUser(user: UserSettings): void {
set(LocalStorageItem.UserUUID, user.uuid);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why saving the user uuid in a new localStorage var, if the user is still going to be saved, and the uuid is already there? 🤔

@TamaraFinogina TamaraFinogina Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because the user will be encrypted, so, getting back up keys (getBackupKeyStorageKeys()) will require 1 decryption. Yet, it only needs the UUID, which is not secret and can be stored without any encryption at all.

@TamaraFinogina TamaraFinogina requested a review from larryrider July 7, 2026 13:08
@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants