Closed augsteyer closed 5 months ago
@augsteyer hey, thanks for reaching out. The context token is already extracted from the headers by extractContextToken
helper. Code: https://github.com/search?q=repo%3Avuestorefront%2Fshopware-pwa+extractContextToken&type=code
so if you're using onConfigChange
callback you should receive the correct context. Let me know if that helps!
Yup, that's my bad. You are totally right.
What happened?
Description
Support context token being returned in the header instead of the response body starting with Shopware 6.5 (optional), and 6.6 (required).
Acceptance criteria
Parse header
sw-context-token
& return it in login call. The logout also has this header, however, the client logout implementation currently does not return anything, so there is no requirement to change the signature of the method.Steps To Reproduce
Is there an existing issue for this?
Version
Latest stable (generated by CLI)
Which element is affected?
shopware-6-client
Environment
Relevant log output