PHP code example of joshcanhelp / wp-rest-api-auth0
1. Go to this page and download the library: Download joshcanhelp/wp-rest-api-auth0 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
joshcanhelp / wp-rest-api-auth0 example snippets
// Auth0 credentials
define( 'AUTH0_API_AUDIENCE', 'API identifier for the WP REST API' );
define( 'AUTH0_API_SIGNING_SECRET', 'API signing secret from Auth0' );
define( 'AUTH0_API_DEBUG', 'Set to `true` to add debugging log entries' );
Example:
https://<your.site>/index.php/wp-json/