Hook code not working

Hello, I’ve been trying to use pre-registration hook and it’s not working. No logs is being shown in live web task log. Even the simple example is not working. Is there any configurations besides creating the Hook? This is the error:

ExtensibilityLogicError on pre-user-registration: Unauthorized extensibility point.

Below is the code used:

module.exports = function (user, context, cb) {
  console.log('Will make the request');
  var response = {};
  response.user = user;
  
  const request = require('request@2.67.0');
  const options = {
    method: 'post',
    body: {
      user: user,
      context: context
    },
    json: true,
    url: 'https://url/to/signup'
  };
  request(options, function(err, httpResponse, body) {
    cb(err, err ? null : response);
  });
};