- Access the WP REST-API in any javascript file using the WPAPI’s ‘wp’ global object directly.
- Installation, Cookies and Basic Authentication handler for the WP REST-API, using NODE-WPAPI.js client. It is used for development, debugging purposes, and if user likes, maybe for production.
- It uses Cookie Authentication when the admin is logged in to WP but switches to Basic Authentication when the admin is logged out of WP.
.
More Info: https://github.com/somefunAgba/node-wpapi-auth
NODE-WPAPI Client Authentication and Global Handle for Wordpress REST-API | Heykuki News