diff --git a/src/app/api/auth/refresh/route.js b/src/app/api/auth/refresh/route.js index f65cb85..ea0d7db 100644 --- a/src/app/api/auth/refresh/route.js +++ b/src/app/api/auth/refresh/route.js @@ -36,6 +36,7 @@ export async function POST(req) { httpOnly: true, secure: isProd, sameSite: isProd ? 'none' : 'lax', + domain: isProd ? '.gdgocinha.com' : undefined, }); }); } diff --git a/src/app/api/signin/route.js b/src/app/api/signin/route.js index de80c8e..90970ea 100644 --- a/src/app/api/signin/route.js +++ b/src/app/api/signin/route.js @@ -43,6 +43,7 @@ export async function POST(request) { httpOnly: true, secure: isProd, sameSite: isProd ? 'none' : 'lax', + domain: isProd ? '.gdgocinha.com' : undefined, }); }); }