You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the command, I got the error 'Error:
"exp" should be a number of seconds'
Actual Behavior
It is easy to fix this issue.
in the file
/usr/local/lib/node_modules/@vonage/cli/dist/commands/jwt/index.js
change line 13:
from: exp: flags.exp || Date.now() + 21600,
to: exp: parseInt(flags.exp) || Date.now() + 21600,
The text was updated successfully, but these errors were encountered:
Node Version
20.x
Platform
Mac (Apple Silcon)
CLI Version
@vonage/cli/1.2.4 darwin-arm64 node-v20.11.0
Command
vonage jwt --key_file=private.key --app_id=12345678 --exp=1706692448
Expected Behavior
With the command, I got the error 'Error:
"exp" should be a number of seconds'
Actual Behavior
It is easy to fix this issue.
in the file
/usr/local/lib/node_modules/@vonage/cli/dist/commands/jwt/index.js
change line 13:
from: exp: flags.exp || Date.now() + 21600,
to: exp: parseInt(flags.exp) || Date.now() + 21600,
The text was updated successfully, but these errors were encountered: