Sharing session state between Magento and WordPress?

Hello!

I’d like to be able to show a cart and some product information in WordPress.

I was thinking about using Magento’s GraphQL API to do this, but the issue is that while I realize you can generate a token to authenticate for registered customers, or store a cart id for a guest customer, it gets “weird” when swapping between WordPress and Magento.

Are there any patterns or plugins or other things I should know about Magento that might make this easier? How can I make sure, for example, if a customer logs into Magento that they also appear to be logged in on the WordPress site?

Thanks for any thoughts / tips / pointers 🙂

submitted by /u/middleagejapanexpat
[link] [comments]