jsonwebtoken.sign(
{ userid: 9080 },
secret,
{ algorithm: 'RS256'},
);
crypto.js:283
var ret = this._handle.sign(toBuf(key), null, passphrase);
^
crypto.js:283
var ret = this._handle.sign(toBuf(key), null, passphrase);
^
Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
at Error (native)
at Sign.sign (crypto.js:283:26)
at Object.sign (c:\project\node_modules\jwa\index.js:55:45)
at Object.jwsSign [as sign] (c:\project\node_modules\jws\lib\sign-stream.js:23:24)
at Object.module.exports [as sign] (c:\project\node_modules\jsonwebtoken\sign.js:146:16)
at create (c:/project/src/server/utils/tokens/jwt.js:7:16)
at Object. (c:/project/src/server/utils/tokens/jwt.js:30:11)
at Module._compile (module.js:570:32)
at loader (c:\project\node_modules\babel-register\lib\node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (c:\project\node_modules\babel-register\lib\node.js:154:7)
crypto.js:283
var ret = this._handle.sign(toBuf(key), null, passphrase);
^
crypto.js:283
var ret = this._handle.sign(toBuf(key), null, passphrase);
^
Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
at Error (native)
at Sign.sign (crypto.js:283:26)
at Object.sign (c:\project\node_modules\jwa\index.js:55:45)
at Object.jwsSign [as sign] (c:\project\node_modules\jws\lib\sign-stream.js:23:24)
at Object.module.exports [as sign] (c:\project\node_modules\jsonwebtoken\sign.js:146:16)
at create (c:/project/src/server/utils/tokens/jwt.js:7:16)
at Object. (c:/project/src/server/utils/tokens/jwt.js:30:11)
at Module._compile (module.js:570:32)
at loader (c:\project\node_modules\babel-register\lib\node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (c:\project\node_modules\babel-register\lib\node.js:154:7)