Skip to main content

JSON Web Tokens (JWTs)

You can authenticate with Macrometa GDN via JSON web tokens (JWTs). The JWTs in GDN expire after 12 hours unless renewed. So it is best to use API Keys for access by your apps and APIs.

The code sample below shows how you could use a JWT to authenticate with the SDK.

const jsc8 = require("jsc8");
const client = new jsc8({url: "", token: "xxxxxx", fabricName: '_system'});