Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/lit 3041 js sdk cherry pick fixes for session key mismatch 443#issuecomment 2082614246 #446

Conversation

Ansonhkg
Copy link
Collaborator

Description

New Implementation suggested here:
#443 (comment)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link
Contributor

@MaximusHaximus MaximusHaximus left a comment

Choose a reason for hiding this comment

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

Added a couple of things in-line :)

Also, IIRC, in order to fix the original issue we need to pass sessionKey into the params passed into getSessionSigs() on L210 also; the bug was that both getSessionSigs() and signSessionKey() would generate new keys when localstorage didn't exist and they would be different.

Copy link
Contributor

@MaximusHaximus MaximusHaximus left a comment

Choose a reason for hiding this comment

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

👍 I think this is good to go 💖

Copy link
Collaborator

@DashKash54 DashKash54 left a comment

Choose a reason for hiding this comment

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

LGTM!

@joshLong145 joshLong145 merged commit 6154bf4 into master Apr 29, 2024
4 checks passed
@joshLong145 joshLong145 deleted the feature/lit-3041-js-sdk-cherry-pick-fixes-for-session-key-mismatch-443#issuecomment-2082614246 branch April 29, 2024 21:49
Ansonhkg added a commit that referenced this pull request Apr 30, 2024
Ansonhkg added a commit that referenced this pull request Apr 30, 2024
@joshLong145 joshLong145 mentioned this pull request May 13, 2024
4 tasks
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.

4 participants