Is it possible to make use of JQuery from the Post and Pre registration hooks?

Hi everyone,

We are attempting to make use of JQuery to send posts and gets from the post registration hook.
Is this possible? Can we pull in libraries from external sources if we host them ourselves? Additionally, would be interested in using the ManagementClient from the hooks if possible:
https://auth0.github.io/node-auth0/module-management.ManagementClient.html.

In general what would be the best way of making use of the Management API methods in the hooks? We need to update the app_metadata of a user after user creation.

Tried the code below, but it did not seem to work:

var jqueryHook = “https://code.jquery.com/jquery-3.4.1.min.js”;

var jquery = require(“$”)(jqueryHook);

Thanks in advance.

Hey there!

As this topic is related to Rules - Hooks - Actions and Rules & Hooks are being deprecated soon 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!