D
D
DragDG2016-01-14 01:00:59
Node.js
DragDG, 2016-01-14 01:00:59

Error in node.js, how to solve?

Am a full zero in node.
But it was required to run some helpdesk under win.
The essence of the problem:
When trying to log in to the application, the following error pops up:

D:\project\helpdesk\node_modules\jsonwebtoken\index.js:109
      throw new Error('"expiresIn" should be a number of seconds or string r
senting a timespan eg: "1d", "24h", 60');
      ^

Error: "expiresIn" should be a number of seconds or string representing a ti
an eg: "1d", "24h", 60
    at Object.JWT.sign (D:\project\helpdesk\node_modules\jsonwebtoken\index.
09:13)
    at Query.<anonymous> (D:\project\helpdesk\controllers\user.js:31:38)
    at D:\project\helpdesk\node_modules\kareem\index.js:177:19
    at D:\project\helpdesk\node_modules\kareem\index.js:109:16
    at nextTickCallbackWith0Args (node.js:456:9)
    at process._tickCallback (node.js:385:13)

I would appreciate a hint/solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kostya Gorozhanov, 2016-01-14
@kgorozhanov

the error says why it arose "expiresIn should be the number of seconds ..."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question