npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

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('', {
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