Skip to content

v2.0.0

Compare
Choose a tag to compare
@commercelayer-ci commercelayer-ci released this 14 Jun 14:04
· 232 commits to main since this release
d7928ce

What's Changed

💥 Breaking Change

🚀 Enhancement

📝 Documentation

  • Update documentation for Identity and My account by @sfiorucci in #38

Full Changelog: v1.4.0...v2.0.0-beta.0

Breaking Changes

Rename returnUrl to orderReturnUrl

<script>
  (function() {
    window.commercelayerConfig = {
      clientId: 'kuSKPbeKbU9LG9LjndzieKWRcfiXFuEfO0OYHXKH9J8',
      slug: 'drop-in-js',
      scope: 'market:11709',
-     returnUrl: 'https://example.com'
+     orderReturnUrl: 'https://example.com'
    }
  }());
</script>

The accessToken stored in the cookie has changed

If you were using the accessToken stored in the cookie, you need to know that the cookie value is now a JSON.stringified object.

Below is an example:

{
    "type": "guest",
    "accessToken": "eyJhbGciOiJIUzUxMiJ9...",
    "scope": "market:11709"
}