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