Skip to content

Instantly share code, notes, and snippets.

@thameera
Last active February 5, 2018 17:08
Show Gist options
  • Save thameera/02e35392e07e5e65d1415c3dc9faa09c to your computer and use it in GitHub Desktop.
Save thameera/02e35392e07e5e65d1415c3dc9faa09c to your computer and use it in GitHub Desktop.
Create/update Auth0 pre-registration hook
PUT /api/webtask/TENANT_NAME/HOOK_NAME HTTP/1.1
Host: sandbox.it.auth0.com
Authorization: Bearer YOUR_WEBTASK_TOKEN
Content-Type: application/json

{
    "code": "module.exports = function (user, context, cb) { /* YOUR CODE HERE */ }",
    "meta": {
        "wt-compiler": "auth0-ext-compilers/pre-user-registration",
        "auth0-extension": "runtime",
        "auth0-extension-name": "pre-user-registration"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment