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

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