1

I'm using an API that requires a JSON Web Token generated with a couple of specific and unique parameters. In node, one would simply use var jwt = require(jsonwebtoken') to load the proper library, but that can't be done in Apps Script.

Is there a GAS library that could substitute node's jsonwebtoken module?

glotchimo
  • 664
  • 5
  • 23
  • Does the API in question provide documentation on how to generate a JWT? – TheAddonDepot Jun 15 '18 at 00:15
  • @DimuDesigns only for Java, Ruby, Python, and Node. Google Apps Script is a JavaScript framework, but many functions are disabled, such as the require function. – glotchimo Jun 15 '18 at 15:50

1 Answers1

0

On Google Apps Script server side code can "require" code only from other Google Apps Script project. For details see Libraries.

Related Q&A

Rubén
  • 34,714
  • 9
  • 70
  • 166