This is a function (reactJS) I have in my application that stores the user\'s ID in my backend database. But when this application is deployed and the url isn\'t localhost for t