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(VTEX): Implement Profile related APIs #1019

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

vitoUwu
Copy link
Contributor

@vitoUwu vitoUwu commented Feb 21, 2025

What is this Contribution About?

This PR implements profile related APIs

  1. getUserProfile that retrieves full detailed profile from the current user
  2. updateNewsletterOptIn action, that allows to opt in/out the newsletter from my account page for example
  3. updateProfile that allows to update profile information from the current user

Copy link
Contributor

Tagging Options

Should a new tag be published when this PR is merged?

  • 👍 for Patch 0.64.36 update
  • 🎉 for Minor 0.65.0 update
  • 🚀 for Major 1.0.0 update

@vitoUwu vitoUwu added the vtex VTEX App label Feb 21, 2025
@vitoUwu vitoUwu changed the title Feat(VTEX): Implement getUserProfile loader Feat(VTEX): Implement Profile related APIs Feb 21, 2025
Comment on lines +36 to +54
try {
const { updateProfile } = await io.query<
{ updateProfile: Profile },
{ input: ProfileInput }
>(
{
query: mutation,
operationName: "UpdateProfile",
variables: {
input: {
...props,
email: payload.sub,
},
},
},
{ headers: { cookie } },
);

return updateProfile;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

check if io API verifies vtex JWT signature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vtex VTEX App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant