0
내가 방법에 따라, JWT-인증을 사용하여 사용자 세부 사항을 가져 오기 위해 노력하고 API를는
를 가져 오는 기본 JWT-인증 오류 반응 API를 가져 오는 기본 JWT-인증 오류 반응한다.
login() {
alert(this.state.UserName);
fetch (Api+''+'/wp-json/jwt-auth/v1/token',{
method: "POST",
username: this.state.UserName,
password: this.state.Password
}).then((response) => response.json())
.then((responseData) =>{
console.log("LoginData:-" + JSON.stringify(responseData));
}).done();
}
}
과 점점 오류 : -
{
"code":"[jwt_auth] empty_username",
"message":"<strong>ERROR</strong>: The username field is empty.",
"data":{"status":403}
}
사람이 도와주세요 알고있는 경우.