Remove jsonwebtoken dependency

This commit is contained in:
advplyr 2022-07-06 18:45:43 -05:00
parent b61ecefce4
commit 954cf3e14e
29 changed files with 2130 additions and 93 deletions

View file

@ -0,0 +1,10 @@
/*global module*/
var Buffer = require('buffer').Buffer;
module.exports = function toString(obj) {
if (typeof obj === 'string')
return obj;
if (typeof obj === 'number' || Buffer.isBuffer(obj))
return obj.toString();
return JSON.stringify(obj);
};