I have the following code from a working Postman GET to retrieve a Bearer token, but I can\'t figure out the proper way to convert it to a working jsFiddle or On Submit in a for