The JWT token provided with the API Key and API Secret only works for API calls and will not work with the SDK.
The JWT the demo app asks for must be created by you using your SDK Key and SDK Secret.
The header and payload for the JWT looks like this:
{
"appKey": "string", // Your SDK key
"iat": long, // access token issue timestamp (Current time in epoch)
"exp": long, // access token expire timestamp, iat + a time less than 48 hours (In epoch)
"tokenExp": long // token expire time, MIN:1800 seconds (In epoch)
}
We strongly recommend using a JWT. However, you can use your SDK Key and SDK Secret directly by using tagAuthParam instead of tagAuthContext. You should only do this for testing purposes, though.
It might be helpful to add this JWT template to the Build, Run, & Play section on your Windows SDK page. It still has the old demo pictures before JWT was used in the Demo.
I have the same issue as being discussed. I followed the above template but I’m unable to create a valid JWT for authenticating through the sdk_demo_v2 windows application. Any suggestions?