Open
Description
The Jwt.prototype.setIssuedAt() and .setExpiration() functions are both time-related, but take in three separate arguments of inconsistent types. IssuedAt only takes in an integer representing seconds, while Expiration can take an integer representing milliseconds, or a Date object. Can you make these arguments consistent?
njwt.create(...)
.setIssuedAt(seconds)
.setExpiration(date or milliseconds);
IssuedAt:
Lines 182 to 185 in ce98cd4
Lines 155 to 157 in ce98cd4
Lines 38 to 40 in ce98cd4
Expiration:
Line 188 in ce98cd4
Metadata
Metadata
Assignees
Labels
No labels