rest api - Create Session with JWT

admin2025-04-20  0

I'm currently working on a shop like project that uses React as frontend and Wordpress with Woocommerce as a backend.

To authenticate with the API I use the JWT Authentication for WP REST API, which works great.

The problem I'm facing is that I want to redirect to a checkout page that is not part of the PWA but a traditional Wordpress page. Is there any way that I can create a WP session using the JWT token I created for the API?

The alternative would be to store the login data and pass it on to the checkout page. But I'd rather avoid this because of security concerns.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745149086a287517.html

最新回复(0)