I want to add the user created inside auth0 to my very own application. To do this i wanted to use the post registration hook, because that would make sense i think.
But whenever i try to add the user to my api i get a 401…
then i read i had to authenticate the hook like every other normal application. But in doing so i get so many exceptions from everywhere that i was hoping someone has done this before and was willing to help me achieve this.
You should be able to register the hook as an application and use a client credentials grant to create the user in your api. I don’t have an exact example, but it would essentially look like this:
Where the server is the hook and the API is your user API.