Making a GRPC request from an auth0 action

I have a post-signup auth0 action. I’m trying to call my services GRPC endpoint from it.

In the hook I’m trying to use the libraries required for this
var grpc = require(“grpc/grpc-js@1.6.3”)
var protoLoader = require(“grpc/proto-loader”);
var _ = require(‘lodash’);

And I’m getting

{
  "code": "MODULE_NOT_FOUND",
  "message": "Cannot find module 'grpc/grpc-js@1.6.3'\nRequire stack:\n- /data/io/node16/21e8e754-1670-4109-a015-b6bab6891f28/webtask.js",
  "name": "Error"
}

This package is said to be supported. Can I require? - Search which node modules you can use in webtask.io

Is there a supported way to make GRPC requests from an auth0 action?

Hey there!

As this topic is related to Actions and Rules & Hooks are being deprecated soon in favor of Actions, I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

Learn more here!