JavaDad
Explore posts from serversTyping Middleware JWT and others
Currently I am trying to type the
c.get('jwtPayload')
that is documented here. I have tried using the method described here in a global.d.ts
file but this does not seem to take any affect, the jwtPayload get result is still typed as any.
Currently I have removed the global.d.ts file and set types on the Hono instance instead so its more explicit. This is still not working for the jwtPayload (and other values I use in middelware like the oauth middleware):
23 replies