@authowl/next 0.4.4 → 0.4.6
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/client.cjs +1 -1
- package/dist/client.js +1 -1
- package/package.json +2 -2
package/dist/client.cjs
CHANGED
|
@@ -169,7 +169,7 @@ function createAuthOwlNextFetch(options) {
|
|
|
169
169
|
};
|
|
170
170
|
const synchronizeSession = () => {
|
|
171
171
|
const snapshot = connection?.sessionStore.getSnapshot();
|
|
172
|
-
if (!snapshot || snapshot.isPending || snapshot.isRefetching) return;
|
|
172
|
+
if (!snapshot || snapshot.isPending || snapshot.isRefetching || snapshot.error) return;
|
|
173
173
|
const sessionId = snapshot.data?.session.id ?? null;
|
|
174
174
|
if (!sessionId) {
|
|
175
175
|
const projected = currentSessionId !== null || hasEnsuredProjection();
|
package/dist/client.js
CHANGED
|
@@ -146,7 +146,7 @@ function createAuthOwlNextFetch(options) {
|
|
|
146
146
|
};
|
|
147
147
|
const synchronizeSession = () => {
|
|
148
148
|
const snapshot = connection?.sessionStore.getSnapshot();
|
|
149
|
-
if (!snapshot || snapshot.isPending || snapshot.isRefetching) return;
|
|
149
|
+
if (!snapshot || snapshot.isPending || snapshot.isRefetching || snapshot.error) return;
|
|
150
150
|
const sessionId = snapshot.data?.session.id ?? null;
|
|
151
151
|
if (!sessionId) {
|
|
152
152
|
const projected = currentSessionId !== null || hasEnsuredProjection();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authowl/next",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "Next.js (App Router) server helpers for AuthOwl, the multi-tenant auth SaaS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"LICENSE"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@authowl/core": "0.
|
|
64
|
+
"@authowl/core": "0.26.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"next": ">=14"
|