Merged in fix/sw-3035-secure-sas-cookie (pull request #2363)
Add secure to SAS flow cookies * Add secure to SAS flow cookies * Reverse NODE_ENV check Approved-by: Linus Flood
This commit is contained in:
@@ -78,6 +78,7 @@ export async function GET(
|
|||||||
cookieStore.set(SAS_TOKEN_STORAGE_KEY, tokenData.access_token, {
|
cookieStore.set(SAS_TOKEN_STORAGE_KEY, tokenData.access_token, {
|
||||||
maxAge: 3600,
|
maxAge: 3600,
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
|
secure: env.NODE_ENV !== "development",
|
||||||
})
|
})
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ async function setSASOtpCookie({
|
|||||||
{
|
{
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
maxAge: 3600,
|
maxAge: 3600,
|
||||||
|
secure: env.NODE_ENV !== "development",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user