Using this plugin for REST API
-
Hello,
I’m developing a mobile app using WP as backend with its REST API. I’m restricting content using your plugin and combining it with this JWT auth plugin. I couldn’t find a way to whitelist the endpoints of the api using your plugin.
I tried to apply the filter as you mentioned in FAQ, but it didn’t work:
function my_forcelogin_whitelist( $whitelist ) { $whitelist[] = home_url( '/wp-json/jwt-auth/v1/token/' ); $whitelist[] = home_url( 'wp-json/jwt-auth/v1/token/validate' ); return $whitelist; } add_filter( 'v_forcelogin_whitelist', 'my_forcelogin_whitelist' );
I also will need to make “reset password” and user creation endpoints public. Could you please tell me what am i doing wrong?
PS: i won’t use wordpress as front-end at all. We’re using 100% backend only.
Thanks in advance.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using this plugin for REST API’ is closed to new replies.