update clear cookie to use var name

Signed-off-by: Stephen Glass <stephen@stephen.glass>
This commit is contained in:
Stephen Glass
2024-07-28 03:29:31 -04:00
parent 5c11d3f970
commit 0625085c2f
@@ -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,
});