please help. i am trying to get the access token with a http request (post) and the msg.payload has the cfedentials, but I get the error below
my flow
My credentials
the error
error
name: "TypeError"
message: "name.toLowerCase is not a function"
stack: "TypeError: name.toLowerCase is not a function↵ at normaliseKnownHeader
hey dude sorry about that - the client id and secret was posted but i left out the url ( )
i used chat GPT and the problem was that I was placing msg.payload in the headers section of the HTTP REQUEST node. msg.payload is automatically passed to body of the HTTP REQUEST node in my credential function i had to define like this the headers part:
Chat GPT resolved my problem with code below - thanks