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_token
to thecustomer
sectioncartId
to thecart
sectionstoreViewCode
to thecart
section
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
The MIT License (MIT). Please see License File for more information.
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