This gist includes sample code which supports hybrid deployment in PWA Kit retail react app. The major changes are in auth.js where the authentication module supports storing auth tokens as cookies and login(..)
function calls the /sessions
OCAPI endpoint to bridge sessions between PWA Kit and SFRA sites.
If you generated a PWA Kit project prior to v2.7.1, you need to adopt the changes from this file in your project.
Code diffs are available in the PR: https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1159/files