naystack 1.4.33 → 1.4.34
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/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.esm.js +1 -1
- package/dist/auth/utils/token.cjs.js +1 -1
- package/dist/auth/utils/token.d.mts +1 -1
- package/dist/auth/utils/token.d.ts +1 -1
- package/dist/auth/utils/token.esm.js +1 -1
- package/dist/graphql/server.cjs.js +1 -1
- package/dist/graphql/server.esm.js +1 -1
- package/package.json +1 -1
package/dist/auth/index.cjs.js
CHANGED
|
@@ -518,7 +518,7 @@ function initInstagramAuth(props) {
|
|
|
518
518
|
var import_headers2 = require("next/headers");
|
|
519
519
|
async function getRefreshToken() {
|
|
520
520
|
const Cookie = await (0, import_headers2.cookies)();
|
|
521
|
-
return Cookie.get(REFRESH_COOKIE_NAME)?.value;
|
|
521
|
+
return Cookie.get(REFRESH_COOKIE_NAME)?.value || null;
|
|
522
522
|
}
|
|
523
523
|
// Annotate the CommonJS export names for ESM import in node:
|
|
524
524
|
0 && (module.exports = {
|
package/dist/auth/index.esm.js
CHANGED
|
@@ -488,7 +488,7 @@ function initInstagramAuth(props) {
|
|
|
488
488
|
import { cookies as cookies2 } from "next/headers";
|
|
489
489
|
async function getRefreshToken() {
|
|
490
490
|
const Cookie = await cookies2();
|
|
491
|
-
return Cookie.get(REFRESH_COOKIE_NAME)?.value;
|
|
491
|
+
return Cookie.get(REFRESH_COOKIE_NAME)?.value || null;
|
|
492
492
|
}
|
|
493
493
|
export {
|
|
494
494
|
checkAuthStatus,
|
|
@@ -31,7 +31,7 @@ var REFRESH_COOKIE_NAME = "refresh";
|
|
|
31
31
|
// src/auth/utils/token.ts
|
|
32
32
|
async function getRefreshToken() {
|
|
33
33
|
const Cookie = await (0, import_headers.cookies)();
|
|
34
|
-
return Cookie.get(REFRESH_COOKIE_NAME)?.value;
|
|
34
|
+
return Cookie.get(REFRESH_COOKIE_NAME)?.value || null;
|
|
35
35
|
}
|
|
36
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
37
37
|
0 && (module.exports = {
|
|
@@ -7,7 +7,7 @@ var REFRESH_COOKIE_NAME = "refresh";
|
|
|
7
7
|
// src/auth/utils/token.ts
|
|
8
8
|
async function getRefreshToken() {
|
|
9
9
|
const Cookie = await cookies();
|
|
10
|
-
return Cookie.get(REFRESH_COOKIE_NAME)?.value;
|
|
10
|
+
return Cookie.get(REFRESH_COOKIE_NAME)?.value || null;
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
13
|
getRefreshToken
|
|
@@ -103,7 +103,7 @@ async function InjectorSuspensed({
|
|
|
103
103
|
props
|
|
104
104
|
}) {
|
|
105
105
|
const data = await fetch();
|
|
106
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
106
|
+
return /* @__PURE__ */ import_react.default.createElement(Component, { loading: false, ...props || {}, data });
|
|
107
107
|
}
|
|
108
108
|
var { query: gqlQuery } = (0, import_client_integration_nextjs.registerApolloClient)(() => {
|
|
109
109
|
return new import_client.ApolloClient({
|
|
@@ -72,7 +72,7 @@ async function InjectorSuspensed({
|
|
|
72
72
|
props
|
|
73
73
|
}) {
|
|
74
74
|
const data = await fetch();
|
|
75
|
-
return /* @__PURE__ */ React.createElement(
|
|
75
|
+
return /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data });
|
|
76
76
|
}
|
|
77
77
|
var { query: gqlQuery } = registerApolloClient(() => {
|
|
78
78
|
return new ApolloClient({
|