update clear cookie to use var name
Signed-off-by: Stephen Glass <stephen@stephen.glass>
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user