@authowl/next 0.2.12 → 0.2.14
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/server.cjs +1 -1
- package/dist/server.js +1 -1
- package/package.json +2 -2
package/dist/server.cjs
CHANGED
|
@@ -177,7 +177,7 @@ function createAuthOwlSessionBridge(input) {
|
|
|
177
177
|
} catch {
|
|
178
178
|
return response(502, { error: "invalid_auth_response" });
|
|
179
179
|
}
|
|
180
|
-
if (!session
|
|
180
|
+
if (!session?.user || !session.session || session.session.pendingMfaEnrollment === true) {
|
|
181
181
|
return response(401, { error: "invalid_session" });
|
|
182
182
|
}
|
|
183
183
|
if (typeof session.session.expiresAt !== "string") {
|
package/dist/server.js
CHANGED
|
@@ -147,7 +147,7 @@ function createAuthOwlSessionBridge(input) {
|
|
|
147
147
|
} catch {
|
|
148
148
|
return response(502, { error: "invalid_auth_response" });
|
|
149
149
|
}
|
|
150
|
-
if (!session
|
|
150
|
+
if (!session?.user || !session.session || session.session.pendingMfaEnrollment === true) {
|
|
151
151
|
return response(401, { error: "invalid_session" });
|
|
152
152
|
}
|
|
153
153
|
if (typeof session.session.expiresAt !== "string") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authowl/next",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
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.15.
|
|
64
|
+
"@authowl/core": "0.15.4"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"next": ">=14"
|