I actually figured an alternative route to this by adding the metadata to the user from the mobile side. However, what I’m trying to do is that I need to send the app name to my REST endpoint so that I can set up configurations for that app. But, I have to know which app it is. My REST endpoint is called after a new user registers via the webhook.
I’m now running into issues with the POST request. I need to be able to send HTTP headers along with the POST. But, for some reason, it’s not allowing me to add the headers to the POST request.
Using this library: GitHub - request/request: 🏊🏾 Simplified HTTP request client.
I got it to work. I used it without the 2.65. I just ended up having to create the options with the url, headers, and form-data and then send that as request.post(options)
I actually figured an alternative route to this by adding the metadata to the user from the mobile side. However, what I’m trying to do is that I need to send the app name to my REST endpoint so that I can set up configurations for that app. But, I have to know which app it is. My REST endpoint is called after a new user registers via the webhook.