Problem: The argument morePayload of jwt.sign() is of type Record<string, string> & JWTPayloadSpec. This typing does not allow the field exp to be defined, among others, since JWTPayloadSpec defines their values as numbers, violating the Record<string, string> definition.
Problem: The argument
morePayload
of jwt.sign() is of typeRecord<string, string> & JWTPayloadSpec
. This typing does not allow the fieldexp
to be defined, among others, since JWTPayloadSpec defines their values as numbers, violating theRecord<string, string>
definition.