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

fixed unauthenticated user issue #62

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed
- Fixed issue with unauthenticated B2C users in checkout shipping step

## [1.10.1] - 2023-08-17
### Fixed
- Fix conditional chain causing issue when retrieving Cost Center data
Expand Down
2 changes: 1 addition & 1 deletion checkout-ui-custom/checkout6-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ const MAX_TIME_EXPIRATION = 1000 * 60 * 5 // 5 minutes
isWorkspace() ? `?v=${ts}` : ''
}`,
}).then(function (response) {
if (Object.keys(response).length === 0) {
if (Object.keys(response).length === 0 || response.error === 'User not authenticated') {
window.sessionStorage.removeItem('b2b-checkout-settings')

return
Expand Down
2 changes: 1 addition & 1 deletion node/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3615,7 +3615,7 @@ stack-utils@^2.0.3:
dependencies:
escape-string-regexp "^2.0.0"

"stats-lite@github:vtex/node-stats-lite#dist":
stats-lite@vtex/node-stats-lite#dist:
version "2.2.0"
resolved "https://codeload.github.com/vtex/node-stats-lite/tar.gz/1b0d39cc41ef7aaecfd541191f877887a2044797"
dependencies:
Expand Down