Description
What version of Elysia is running?
1.1.12
What platform is your computer?
Darwin 23.6.0 arm64 arm
What steps can reproduce the bug?
Sign any payload with the JOSE librery
return new SignJWT(payload1)
.setProtectedHeader({ alg: 'HS256' })
.setIssuedAt()
.setExpirationTime('7d')
.sign(key)
and verify with the elysia-jwt
{ jwtAccess, body: { name } }) => {
return jwtAccess.verify(jwt)
}
This generates an error due to the iat check in the iat code: t.Optional(t.String())
What is the expected behavior?
No error on schema verification
What do you see instead?
No response
Additional information
No response
Have you try removing the node_modules
and bun.lockb
and try again yet?
No response