Pass an Access Token to a Function Node

Hi, I hope this finds you well.
I'm GETTING an Access Token by calling a RestAPI through an HTTP request, then I'm extracting that Access Token to a msg.payload, I'd like to know how I can pass that Bearer Token to a Function Node.
See below screenshot.
Function Node

You can concatenate strings and variables using The + operator
e.g.

{
    "Content-Type": "application/json",
    "authorization": "Bearer " + msg.payload
}

Seems to work, thanks a lot !

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.