Open valyefimov opened 10 months ago
@valyefimov were you able to find a solution for this? I've just encountered the same issue.
@valyefimov were you able to find a solution for this? I've just encountered the same issue.
Yes, I wrote a script that decodes the string and updates the final JS file. I run that script after making a production build for Chrome Web Store submissions.
"postbuild-production": "node ./scripts/fix-auth0-violation.js",
https://gist.github.com/valyefimov/f2fc1c70c9bfd94fba98d962e1112c8c
Note: you have to update this line to specify your build folder
const assetsPath = path.join(__dirname, '../build/chrome-mv3-production');
@valyefimov were you able to find a solution for this? I've just encountered the same issue.
Yes, I wrote a script that decodes the string and updates the final JS file. I run that script after making a production build for Chrome Web Store submissions.
"postbuild-production": "node ./scripts/fix-auth0-violation.js",
https://gist.github.com/valyefimov/f2fc1c70c9bfd94fba98d962e1112c8c
Note: you have to update this line to specify your build folder
const assetsPath = path.join(__dirname, '../build/chrome-mv3-production');
Thank you so much for this, this is super helpful!!
Checklist
Description
I got a violation at the Chrome Web Store.
Code Readability Requirements
Violation reference ID: Red Titanium Violation: Having obfuscated code in the package. Violating content: Code snippet:
How to rectify: Replace the obfuscated code with human-readable code and resubmit the item.
Reproduction
Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2Vy
Additional context
No response
auth0-react version
2.1.1
React version
18.2.0
Which browsers have you tested in?
Chrome