jax-hono 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/middleware/jwt.ts CHANGED
@@ -18,13 +18,11 @@ function createJwtAuth<
18
18
  const session = c.var.session;
19
19
  const sessionData = await session.get();
20
20
 
21
- console.log("sessionData", sessionData);
22
-
23
- // if (sessionData && sessionData[options.stateKey]) {
24
- // c.state[options.stateKey] = sessionData[options.stateKey];
25
- // await next();
26
- // return;
27
- // }
21
+ if (sessionData && sessionData[options.stateKey]) {
22
+ c.state[options.stateKey] = sessionData[options.stateKey];
23
+ await next();
24
+ return;
25
+ }
28
26
 
29
27
  // const session = c.get('session');
30
28
  // const sessionData = session.get(options.stateKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jax-hono",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Lightweight framework layer on top of Hono, built for Bun",
5
5
  "type": "module",
6
6
  "main": "./index.ts",