hubble PWA Docs
PWA
Demo
Website
Github
PWA
Demo
Website
Github
  • What is hubble PWA?
    • Overview
    • Techstack
    • Requirements
    • Installation
    • Roadmap
    • Contact
    • Troubleshooting
  • Architecture

    • Shop Connector
    • File-based inheritance
    • Pages
    • Preinstalled Modules
    • User Session
      • Shopware
        • Context Token
        • Guest
        • Logged In
    • Layouts
    • Components
  • Configuration
  • Theming

    • Default Theme
  • Shopware 6
    • How to set up Shopware 6 to work with hubble PWA
    • Shopware 6 Plugins
    • Shopware 6 Emotionworlds
    • i18n
    • Trade-offs
  • Module Development
    • Contribution Guide PWA
    • Tests
    • Hubble Coding Guidelines for Contributors
    • API Clients

User Session

There are only a few session related information stored in the hubble PWA, to keep the front and backend in sync. This information is stored clientside as cookies and accessible through the runtime via Vuex.

Some API calls require an ID or token to assign a request to a user session. For example: fetch a cart, place order, get customer.

Some other API calls generate a new ID or token for a new session or for security purposes. For example: add to cart, login. As soon as the API response includes a token, hubble stores it as a cookie and as a vuex store state, so it can be used for all further calls that require a session ID or token.

Shopware

Context Token

In Shopware the session ID or token is called context token.

Guest

The user is assigned to a valid context token and the customer guest flag inside the session is true.

Logged In

The user is assigned to a valid context token and the customer guest flag inside the session is false.

Prev
Preinstalled Modules
Next
Layouts