@wenjingli-qa I have found the bug and a fix for it. I would much appreciate if you could test the fix and let me know the results.
Here’s what my detective work turned up: Solid-node-client uses solid-auth-fetcher which uses form-urlencoded which has recently slightly changed its interface without a major version change. The fix is to change solid-auth-fetcher to handle both the older and newer form-urlencoded. I’ll submit a patch so there should be a new npm version of solid-node-clien when the patch is accepted by solid-auth-fetcher.
In the mean time, if you follow these steps, you should be able to login to NSS with solid-node-client again.
In the solid-node-client folder, run npm install if you haven’t already then edit the file in ./node_modules/solid-auth-fetcher/dist/login/oidc/TokenRequester.js. remove line 20 which should look like this
const form_urlencoded_1 = __importDefault(require("form-urlencoded"));
In its place put these lines :
let form_urlencoded_1 = __importDefault(require("form-urlencoded"));
if( typeof form_urlencoded_1.default != "function" ) {
form_urlencoded_1 = form_urlencoded_1.default ;
}
If you (or anyone else) has time to try this, please let me know the results.