elysiajs / elysia-jwt

Plugin for Elysia for using JWT Authentication
MIT License
38 stars 16 forks source link

allow paylod complex data structures #31

Open 0-don opened 4 months ago

0-don commented 4 months ago

Fixes https://github.com/elysiajs/elysia-jwt/issues/20

Updated the type definitions for JWT payloads to allow complex data structures, including arrays and objects, enabling greater flexibility in handling various use cases. This change modifies the type constraints in both the sign and verify functions from string | number to any.