Download the PHP package hyva-themes/magento2-graphql-tokens without Composer
On this page you can find all versions of the php package hyva-themes/magento2-graphql-tokens. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hyva-themes/magento2-graphql-tokens
More information about hyva-themes/magento2-graphql-tokens
Files in hyva-themes/magento2-graphql-tokens
Package magento2-graphql-tokens
Short Description Adds Customer and Cart tokens to CustomerData sections
License BSD-3-Clause
Informations about the package magento2-graphql-tokens
Hyvä Themes - GraphQL Tokens module
hyva-themes/magento2-graphql-tokens
This module adds GraphQL tokens to the CustomerData sections to enable GraphQL calls from a Magento template.
Compatible with Magento 2.3.4 and higher.
What does it do?
It adds:
signin_tokento thecustomersectioncartIdto thecartsectionstoreViewCodeto thecartsection
The CartId is the masked cartId that is needed for guest carts. The storeViewCode is needed to set the store-code on GraphqQl requests.
When logged in, the customer signin_token can be used to get the real cart id.
Installation
-
Install via composer
- Enable module
Configuration
No configuration needed.
How does it work?
There are after-plugins that add the tokens to the individual sections.
If a token already exists, it uses the existing one. Otherwise, a fresh token is generated on the fly.
Credits
- Willem Wigman
- All Contributors
License
This package is licensed under the Open Software License (OSL 3.0).
- Copyright: Copyright © 2020-present Hyvä Themes. All rights reserved.
- License Text (OSL 3.0): The full text of the OSL 3.0 license can be found in the
LICENSE.txtfile within this package, and is also available online at http://opensource.org/licenses/osl-3.0.php.
All versions of magento2-graphql-tokens with dependencies
magento/module-catalog Version >=103.0.0
magento/module-checkout Version >=100.3.0
magento/module-customer Version >=102.0.0
