最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

rest api - Create Session with JWT

programmeradmin0浏览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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论