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

chore: update transient storage sample #49

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

zixiang2018
Copy link
Contributor

@zixiang2018 zixiang2018 commented Oct 25, 2023

Context

  • fetched document should have not have "document" as a key. This additional field resulted in the toolkit not being able to decrypt and show the original document on the left text box
  • Issue was was due to calling POST in transient storage API instead of getting queue number and then calling PUT document.
{
"document": { // to remove this 
  "cipherText": "",
  "iv": "",
  "tag": "",
  "type": "",
  "ttl": "",
   },  
"key": ""
}

What this PR does

  • update transient storage document as the previous one was showing the wrong JSON structure (correct structure below)
{
  "cipherText": "",
  "iv": "",
  "tag": "",
  "type": "",
  "ttl": "",
  "key": ""
} 

@zixiang2018 zixiang2018 merged commit 80db97f into master Oct 25, 2023
4 checks passed
@zixiang2018 zixiang2018 deleted the chore/update-encrypt-decrypt-sample branch October 25, 2023 05:09
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