Skip to content

iat Type inconsistency #52

Closed
@ga1az

Description

@ga1az

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions