Rest API: Register and Login errors aren’t specific

The problem I was having is that I wasn’t receiving the full error object. To do that I changed the code to: const { username, password, email } = this.state; axios .post(`${Config.apiUrl}/wp/v2/users/register`, { username: username, password: password, email: email, }) .catch(err => { console.log({err}) }); Which then allowed me to figure out that the error … Read more

Get user in rest API endpoint

Thanks to Jacob Peattie, I was able to solve this issue. You have to include a nonce from the WordPress Javascript API in your REST API requests if you wish to use information about the current user. From the WordPress documentation: If no nonce is provided the API will set the current user to 0, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)