-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 when set expiresIn option on JWT signing #985
Comments
I'm getting this error as well. Specifically:
|
Apparently, the string payload doesn't support the options follows:
|
Due to RFC 7519, the string payload should be deprecated. The payload must be in JSON format. |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Error when I set the expiresIn on the sign function. The error message is invalid
invalid expiresIn option for string payload
I've tried to put
10m
and600
as value but it still invalid.Reproduction
Environment
The text was updated successfully, but these errors were encountered: