NPM hooks 'no credentials provided'

I am trying to use NPM hooks to monitor an organization scope. I am getting the response:
{ message: 'no credentials provided. please login.' }

My setup code for the hook is:

fetch('https://registry.npmjs.org/-/npm/v1/hooks/hook/', {
method: 'POST',
body: JSON.stringify(body),
headers: {
'Content-Type': 'application/json'
}
})
.then(res =>; res.json())
.then(json =>; console.log(json));

How do I supply a credential? The only documentation I could find was https://github.com/npm/registry/blob/master/docs/hooks/endpoints.md

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.