From 0625085c2fe946cf7091f7633b15c29fde435ee6 Mon Sep 17 00:00:00 2001 From: Stephen Glass Date: Sun, 28 Jul 2024 03:29:31 -0400 Subject: [PATCH] update clear cookie to use var name Signed-off-by: Stephen Glass --- .../auth-backend/src/service/createCookieAuthErrorMiddleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/auth-backend/src/service/createCookieAuthErrorMiddleware.ts b/plugins/auth-backend/src/service/createCookieAuthErrorMiddleware.ts index 9b1d20431d..cf7645b081 100644 --- a/plugins/auth-backend/src/service/createCookieAuthErrorMiddleware.ts +++ b/plugins/auth-backend/src/service/createCookieAuthErrorMiddleware.ts @@ -30,7 +30,7 @@ export function createCookieAuthErrorMiddleware(authUrl: string) { if (error) { const { hostname: domain } = new URL(authUrl); - res.clearCookie('auth-error', { + res.clearCookie(AUTH_ERROR_COOKIE, { path: '/api/auth/.backstage/error', domain, });