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

Fix getAuthenticatedUser #47

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Fix getAuthenticatedUser #47

merged 2 commits into from
Feb 5, 2024

Conversation

rbussola
Copy link
Contributor

@rbussola rbussola commented Feb 2, 2024

What problem is this solving?

When validating a user, the message 'CheckUserAccess: Invalid store user token' was being logged, and some functions were falling due to the getAuthenticatedUser function. For example, when using the ClearCart operation, it had the following response:

image

How to test it?

Access here, click to Use Quote. You will be redirected to checkout; go back to the store and a popup will be shown; click on Clear cart

Screenshots or example usage:

Before:
image

After:
image

Copy link

vtex-io-ci-cd bot commented Feb 2, 2024

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

Copy link

github-actions bot commented Feb 2, 2024

Messages
📖 ❤️ Thanks!
📖

🎉 PR additions = 11, PR deletions = 0

Generated by 🚫 dangerJS against 191171e

@rbussola rbussola changed the title Update manifest.json Fix getAuthenticatedUser Feb 2, 2024
@rbussola rbussola requested a review from Rudge February 2, 2024 16:51
Copy link

sonarqubecloud bot commented Feb 2, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@rbussola rbussola merged commit 130165b into master Feb 5, 2024
13 checks passed
@rbussola rbussola deleted the fix-CheckUserAccess branch February 5, 2024 14:13
Copy link

vtex-io-ci-cd bot commented Feb 5, 2024

Your PR has been merged! App is being published. 🚀
Version 2.5.1 → 2.5.2

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy [email protected]

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. 📖

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