Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
How to use jsrsasign.js in SuiteScript Debugger for OAuth 2.0 Client Credential Grant flow?
Hi All,
I'm new to this OAuth 2.0 Client Credential Grant flow. I'm having problem correctly using jsrsasign.js, or I'm unable to spot my scripting mistakes. SuiteScript Debugger reported error "init failed:Error: not supported argument" upon signing the JWT in my require() script in debugger. jsrsasign.js of course has no problem, the problem must be how I am using it. Please can anyone show me the way?
jsrassign.js was copy/paste into my require() script for debugging, and it was downloaded from
I've referenced SuiteAnswer 1013484 for using Postman to get Access Token from OAuth 2.0 Client Credential; and got it working. ie. Postman returned the Access Token, see it using jsrsasign without problem, and created OAuth 2.0 Authorized Application record at OAuth 2.0 Netsuite instance.