How to authenticate Orchestrator API using ReactJS & NTLM

Please tell us how we can generate the NTLM code in ReactJS application. I tried with
username and password base64 string, but not able to succeed.

Please help, this is urgent !

Here is the sample ReactJS code

const token = Buffer.from(${ username}:${password}, “utf8”).toString(“base64” );

const config: AxiosRequestConfig = {

  method: "get",

  withCredentials: true,

  url: "https://xxxxxx/odata/Processes",

  headers: {

    Accept: "*/*",

    "Content-Type": "application/json",

    "X-UIPATH-TenantName": "Default",

    Authorization : "NTLM "+  token




  .then(function (response: any) {



  .catch(function (error: any) {