我正在使用 Microsoft azure ad 身份验证。当我尝试使用图形 api 更改用户密码时,它会给我一个错误
我还设置了更改密码所需的权限,但它也不起作用
const changePassword = {
currentPassword: ctx.request.body.currentPassword,
newPassword: ctx.request.body.newPassword
};
const client = createAuthenticated.createAuthenticatedClient();
await client.api('/me/changePassword').post(changePassword);