I want to call my server from postRegistration hook.
I can write my own authentication layer for that, but I guess there’s already something that I can use.
The hook function looks like this: function (user, context, cb)
Looking at the context object, I’ve found that all of the following contain the same secret:
And all of the following contain the same jwt:
I’m not even sure what fields from the context am I supposed to be using. Most of it looks like details of the request between auth0 and webtask.io (the service that auth0 are using to run my hook script)
So - can I use the secret or JWT as authentication to my own server? If I can, which path in the context should I prefer?