feat: add CUSTOM_COOKIE_DOMAIN

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-01-20 12:43:30 +01:00
parent 83c3647f66
commit aa13c87e87
2 changed files with 28 additions and 0 deletions

View File

@@ -33,6 +33,13 @@ function isMultiPartTLD(potentialTLD: string): boolean {
}
export const parseCookieDomain = (url: string) => {
if (process.env.CUSTOM_COOKIE_DOMAIN) {
return {
domain: process.env.CUSTOM_COOKIE_DOMAIN,
secure: true,
};
}
if (!url) {
return {
domain: undefined,