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: added customer vault token route #90

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

FlorianKe
Copy link
Contributor

@FlorianKe FlorianKe commented Jan 30, 2025

@FlorianKe FlorianKe force-pushed the feat/vault-token-route branch 2 times, most recently from 04062a5 to b63f694 Compare January 30, 2025 13:49
@FlorianKe FlorianKe requested a review from cyl3x January 30, 2025 13:49
@FlorianKe FlorianKe self-assigned this Jan 30, 2025
@FlorianKe FlorianKe force-pushed the feat/vault-token-route branch from b63f694 to 9db3f02 Compare January 30, 2025 13:50
CHANGELOG.md Outdated Show resolved Hide resolved
@FlorianKe FlorianKe force-pushed the feat/vault-token-route branch 2 times, most recently from 5928db6 to 6466754 Compare January 30, 2025 14:51
@FlorianKe FlorianKe force-pushed the feat/vault-token-route branch from 6466754 to 3655fae Compare January 30, 2025 14:55
@FlorianKe FlorianKe requested a review from mstegmeyer January 30, 2025 15:01
Comment on lines +65 to +72
return new JsonResponse(
['token' => $this->tokenResource->getUserIdToken($context->getSalesChannelId(), $vault->getTokenCustomer())->getIdToken()]
);
}

return new JsonResponse(
['token' => $this->tokenResource->getUserIdToken($context->getSalesChannelId())->getIdToken()]
);
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest this to be a TokenResponse instead of a generic JsonResponse. This would also make things easier in the StorefrontDataServices, not having to decode json again.

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.

3 participants