@mastra/auth-cloud 1.2.6 → 1.2.7
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/index.js
CHANGED
|
@@ -420,7 +420,7 @@ const SESSION_COOKIE_NAME = "mastra_cloud_session";
|
|
|
420
420
|
* @returns Set-Cookie header value
|
|
421
421
|
*/
|
|
422
422
|
function setSessionCookie(token, isProduction) {
|
|
423
|
-
let cookie = `${SESSION_COOKIE_NAME}=${token}; HttpOnly; SameSite=Lax; Path=/; Max-Age
|
|
423
|
+
let cookie = `${SESSION_COOKIE_NAME}=${token}; HttpOnly; SameSite=Lax; Path=/; Max-Age=86400`;
|
|
424
424
|
if (isProduction) cookie += "; Secure";
|
|
425
425
|
return cookie;
|
|
426
426
|
}
|
|
@@ -983,7 +983,7 @@ var MastraAuthProvider = class extends MastraBase {
|
|
|
983
983
|
}
|
|
984
984
|
};
|
|
985
985
|
//#endregion
|
|
986
|
-
//#region ../../packages/_internals/auth/dist/ee-
|
|
986
|
+
//#region ../../packages/_internals/auth/dist/ee-XRuijAiF.js
|
|
987
987
|
/**
|
|
988
988
|
* FGA enforcement utility for checking fine-grained authorization.
|
|
989
989
|
*
|
|
@@ -1296,7 +1296,7 @@ var MastraCloudAuthProvider = class extends MastraAuthProvider {
|
|
|
1296
1296
|
*/
|
|
1297
1297
|
async createSession(userId, metadata) {
|
|
1298
1298
|
const now = /* @__PURE__ */ new Date();
|
|
1299
|
-
const expiresAt = new Date(now.getTime() +
|
|
1299
|
+
const expiresAt = new Date(now.getTime() + 864e5);
|
|
1300
1300
|
return {
|
|
1301
1301
|
id: metadata?.accessToken ?? crypto.randomUUID(),
|
|
1302
1302
|
userId,
|