I’m trying to update metadata for users with pathUserMetadata. Below is my code:
management = new auth0.Management({
domain: environment.domain,
token: this.cookieService.get('access_token'),
clientId: environment.clientId,
clientSecret: environment.cliendSecret,
scope: 'create:users read:users update:users openid profile email',
});
this.auth0.management.patchUserMetadata(
'auth0|xxx' , //of xxx
userMetadata,
(err, res) => {
console.log('err', err);
console.log('res', res);
}
);
but it alway return
{
"statusCode": 400,
"error": "Bad Request",
"message": "Bad HTTP authentication header format",
"errorCode": "Bearer"
}
How can I run this API?
Top comments (0)