-
Notifications
You must be signed in to change notification settings - Fork 116
Closed
Description
Expected Behavior
Question/expected result.
What to do when user token is expired but page was not reload?
Actual Behavior
when u stay a long in account and try to change address u r getting error in methods save, update
request to api/magento/createCustomerAddress
getting an error in console
useAddresses/save TypeError: Cannot read properties of undefined (reading 'createCustomerAddress')
const {
remove,
update,
save,
error: errorAddresses
} = useAddresses();
and in error
Possible Solution
- Handle token expiration
- Redirect to the homepage
- Display a notification about logging out because of inactivity
- Remove the "Remember me" checkbox from the login popup
- Update the docs and stand out that we use default Magento process
Steps to reproduce
- Log in. to customer account
- got to my account
- go to address details
- click: change address
- Wait for session expired, or remove vsf-customer cookie
- Submit form
- Observe the error
What version of Magento 2 integration are you using?
2.4.3
What version of Node.js are you using?
v14.17.5
What browser (and version) are you using?
Chrome Version 94.0.4606.71 (Official Build) (x86_64)
What operating system (and version) are you using?
macOS Version 11.6 (20G165)
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
