@hellocoop/nextjs 2.10.0 → 2.10.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAMvC,eAAO,MAAM,IAAI,QAAsB,QAAQ,IAAI,CAelD,CAAA"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAUvC,eAAO,MAAM,IAAI,QAAsB,QAAQ,IAAI,CAQlD,CAAA"}
package/dist/auth.js CHANGED
@@ -5,14 +5,15 @@ const router_1 = require("@hellocoop/router");
5
5
  const headers_1 = require("next/headers");
6
6
  const core_1 = require("@hellocoop/core");
7
7
  const constants_1 = require("@hellocoop/constants");
8
+ // TODO cache decryption
9
+ // import { unstable_cache } from 'next/cache';
10
+ // https://nextjs.org/docs/app/api-reference/functions/unstable_cache
8
11
  const auth = async function () {
9
12
  var _a;
10
13
  const authCookie = (_a = (0, headers_1.cookies)().get(router_1.configuration.cookies.authName)) === null || _a === void 0 ? void 0 : _a.value;
11
- console.log({ authCookie });
12
14
  if (!authCookie)
13
15
  return constants_1.NotLoggedIn;
14
16
  const a = await (0, core_1.decryptObj)(authCookie, router_1.configuration.secret);
15
- console.log({ a });
16
17
  if (!a)
17
18
  return constants_1.NotLoggedIn;
18
19
  return a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellocoop/nextjs",
3
- "version": "2.10.0",
3
+ "version": "2.10.1",
4
4
  "description": "Next.js SDK for Hellō https://hello.dev",
5
5
  "repository": {
6
6
  "type": "git",