menu

Elastic Path

This is a community forum for discussion and knowledge sharing. For support requests, please visit support.elasticpath.com

Channels
Team

LocalStorage being written to local environment - JS-SDK

August 28, 2019 at 10:53am

LocalStorage being written to local environment - JS-SDK

August 28, 2019 at 10:53am
Morning everyone.. I have noticed that when I sign in with Moltin.Customers.Token(email, password), a localstorage folder is created with two files: mcart and moltinCredentials. Is this suppose to happen?

August 28, 2019 at 10:56am
Yeah, it is.
  • reply
  • like
You can short circuit this behaviour should not not want it to remember the credentials, but that will cause requests to have to reauthenticate each time. https://github.com/moltin/js-sdk#custom-storage
  • reply
  • like
Thanks jamie... just have to make sure I git ignore them
like-fill
1
  • reply
  • like