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: get admin token from header #146

Merged
merged 5 commits into from
Jul 17, 2024

Conversation

Matheus-Aguilar
Copy link
Contributor

@Matheus-Aguilar Matheus-Aguilar commented Jul 10, 2024

What problem is this solving?

Added logic to also get tokens from headers. More info on: https://vtex-dev.atlassian.net/browse/B2BTEAM-1738

Copy link

vtex-io-ci-cd bot commented Jul 10, 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 Jul 10, 2024

Messages
📖 ❤️ Thanks!
📖

🎉 PR additions = 107, PR deletions = 5

Generated by 🚫 dangerJS against 0ab28b8

Comment on lines +160 to +161
const { hasAdminToken, hasCurrentValidAdminToken, hasValidAdminToken } =
await validateAdminToken(context, adminUserAuthToken)
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

Copy link

@Matheus-Aguilar Matheus-Aguilar merged commit d13b201 into master Jul 17, 2024
13 checks passed
@Matheus-Aguilar Matheus-Aguilar deleted the fix/TEAMB2B-1738-get-header-token branch July 17, 2024 12:25
Copy link

vtex-io-ci-cd bot commented Jul 17, 2024

Your PR has been merged! App is being published. 🚀
Version 1.41.1 → 1.42.0

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 vtex.storefront-permissions@1.42.0

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