Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: secret must be a string or bufferor a KeyObject #6

Closed
ghost opened this issue Jul 9, 2020 · 1 comment
Closed

Error: secret must be a string or bufferor a KeyObject #6

ghost opened this issue Jul 9, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 9, 2020

why i am getting this even after using 2 parameters

Error: secret must be a string or bufferor a KeyObject

return await jwtr.sign( '07FEF41CA582A9C777F5B05528E4386C2733AD375632C0483B384BEBB679D0C7', {expiresIn: 60*60*24*30});

@Natashkinsasha
Copy link
Owner

first argument of this method can be only object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant