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

feat: wrap payload in envelope #23

Closed
wants to merge 2 commits into from
Closed

feat: wrap payload in envelope #23

wants to merge 2 commits into from

Conversation

naugtur
Copy link
Member

@naugtur naugtur commented Jan 22, 2024

To prevent the secret string from being cached all over the place by react and made public, wrap the string in an envelope where there's no way to retrieve the contents without being the implementer of the envelope.

"webpack-dev-server": "4.15.1"
"webpack-dev-server": "4.15.1",
"react": "^16.12.0",
"react-dom": "^16.12.0"
Copy link
Member Author

Choose a reason for hiding this comment

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

they didn't get installed by default. for the build to work we need to have these as dev deps

Comment on lines +28 to +30
const payload = STORE.get(envelope);
lavadome.current.envelope(payload);
}, [envelope]);
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
const payload = STORE.get(envelope);
lavadome.current.envelope(payload);
}, [envelope]);
lavadome.current.envelope(envelope);
}, [envelope]);

Sorry, missed this one when refactoring.

@weizman
Copy link
Member

weizman commented Feb 11, 2024

migrated to #26

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