PHPackages                             hyva-themes/magento2-graphql-tokens - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hyva-themes/magento2-graphql-tokens

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

hyva-themes/magento2-graphql-tokens
===================================

Adds Customer and Cart tokens to CustomerData sections

1.0.4(4y ago)242.9M↓45.5%71BSD-3-ClausePHP

Since Feb 3Pushed 2mo ago14 watchersCompare

[ Source](https://github.com/hyva-themes/magento2-graphql-tokens)[ Packagist](https://packagist.org/packages/hyva-themes/magento2-graphql-tokens)[ RSS](/packages/hyva-themes-magento2-graphql-tokens/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (5)Dependencies (4)Versions (9)Used By (1)

Hyvä Themes - GraphQL Tokens module
===================================

[](#hyvä-themes---graphql-tokens-module)

[![Hyvä Themes](https://camo.githubusercontent.com/6617ec88f9ece631287fcfcfea346057ad648dffe78a0867a0b43d8e0350a5d2/68747470733a2f2f687976612e696f2f6d656469612f777973697779672f6c6f676f2d636f6d706163742e706e67)](https://hyva.io/)

hyva-themes/magento2-graphql-tokens
-----------------------------------

[](#hyva-themesmagento2-graphql-tokens)

[![Supported Magento Versions](https://camo.githubusercontent.com/0b6d28a963c77797b2df0442dbf1b6340361b3125bd3ce1dc10ce7a7d1a1fdcf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e33253230253743253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/0b6d28a963c77797b2df0442dbf1b6340361b3125bd3ce1dc10ce7a7d1a1fdcf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e33253230253743253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)

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?
----------------

[](#what-does-it-do)

It adds:

- `signin_token` to the `customer` section
- `cartId` to the `cart` section
- `storeViewCode` to the `cart` 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
------------

[](#installation)

1. Install via composer ```
    composer config repositories.hyva-themes/magento2-graphql-tokens git git@github.com:hyva-themes/magento2-graphql-tokens.git
    composer require hyva-themes/magento2-graphql-tokens

    ```
2. Enable module ```
    bin/magento setup:upgrade

    ```

Configuration
-------------

[](#configuration)

No configuration needed.

How does it work?
-----------------

[](#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
-------

[](#credits)

- [Willem Wigman](https://github.com/wigman)
- [All Contributors](../../contributors)

### License

[](#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.txt` file within this package, and is also available online at .

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance56

Moderate activity, may be stable

Popularity53

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~50 days

Total

5

Last Release

1777d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cd0062c670f61aa554c5d30193848ac11031b6cdb8f8616249b95a235eb475d?d=identicon)[wigman](/maintainers/wigman)

---

Top Contributors

[![wigman](https://avatars.githubusercontent.com/u/4800926?v=4)](https://github.com/wigman "wigman (27 commits)")[![Vinai](https://avatars.githubusercontent.com/u/72463?v=4)](https://github.com/Vinai "Vinai (3 commits)")[![jesse-deboer](https://avatars.githubusercontent.com/u/14839421?v=4)](https://github.com/jesse-deboer "jesse-deboer (2 commits)")[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (2 commits)")[![JeroenBoersma](https://avatars.githubusercontent.com/u/1163348?v=4)](https://github.com/JeroenBoersma "JeroenBoersma (1 commits)")[![rajeev-k-tomy](https://avatars.githubusercontent.com/u/7589113?v=4)](https://github.com/rajeev-k-tomy "rajeev-k-tomy (1 commits)")

### Embed Badge

![Health badge](/badges/hyva-themes-magento2-graphql-tokens/health.svg)

```
[![Health](https://phpackages.com/badges/hyva-themes-magento2-graphql-tokens/health.svg)](https://phpackages.com/packages/hyva-themes-magento2-graphql-tokens)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[buckaroo/magento2

Buckaroo Magento 2 extension

32420.3k8](/packages/buckaroo-magento2)[imi/magento2-friendly-captcha

Friendly Captcha integration for Magento2

19131.4k](/packages/imi-magento2-friendly-captcha)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k26](/packages/loki-magento2-components)[yireo/magento2-extensionchecker

Scan the code of a Magento module

96166.3k3](/packages/yireo-magento2-extensionchecker)[zwernemann/module-withdrawal

Magento 2 EU Withdrawal Button Module - Adds a withdrawal/revocation button for orders in compliance with EU Directive (EU) 2023/2673

245.0k2](/packages/zwernemann-module-withdrawal)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
