Hi Konrad, thanks again for getting back to me.
I understand the concept of a callback function, but my question was if there’s any documentation for what this function does, or at least what data it expects.
As you can see, the second argument to the function is a “response” object. I assume I can use this argument to control some aspect of the application, but this doesn’t seem to be that well documented. I only see examples:
In one example, the response object has a “user” attribute, and there it says that “If you specify
user_metadata in the response object, Auth0 adds this information to the new user.” So this bit is clear.
In another example, the response object also has a “context” attribute but there’s no explanation regarding that. The documentation does explain the “context” parameter to the hook function, but it doesn’t explain what’s the effect, if any, of adding a “context” attribute to the response object.
I was hoping for a clearer and more exhaustive documentation on how the response object can be used, instead of just one example for a specific use. If “adding this information to the new user” all that can be done with the response, or are there other possibilities?