You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Token getting Unauthorized

We are trying to connect our app and we keep getting unauthorized for the token.

That's our payload (we did remove sensitive data):



import axios from "axios";

import crypto from "crypto";


const APP_TOKEN = "";

const APP_UUID = ""

const PROVIDER_UUID = "";

const PROVIDER_SECRET = "";


function base64UrlEncode(input) {

 const buffer = Buffer.from(input);

 const base64 = buffer.toString("base64");

 const base64Url = base64

  .replace(/\+/g, "-")

  .replace(/\//g, "_")

  .replace(/=/g, "");

 return base64Url;

}


(async function(){

 let UUID = (()=>([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,a=>(a^Math.random()*16>>a/4).toString(16)))();


 var header64 = base64UrlEncode(

  JSON.stringify({

   alg: "HS256",

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!