Description
New implementation to obtain the new token when the user authenticates from VPN to use premium features.
We use window.postMessage
to send the token to the extension, where the extension can get it via a web worker.
Related Pull Requests
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
How Has This Been Tested?
- Open Chrome browser
- Enable Developer Mode
- Add the extension build folder (ask me by DM for it - this folder points to staging, so if you want to test it, we should deploy this branch in Staging. If not, we can merge this PR in production and I can package the extension as if it were for production to point to drive.internxt.com).
- Open the extension.
- Test the authentication (we jus get the user token).