diff --git a/.changeset/clean-toys-reply.md b/.changeset/clean-toys-reply.md new file mode 100644 index 0000000000..66002903ab --- /dev/null +++ b/.changeset/clean-toys-reply.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-auth-node': patch +--- + +remove leading dot in auth cookie cleanup call diff --git a/plugins/auth-node/src/oauth/OAuthCookieManager.ts b/plugins/auth-node/src/oauth/OAuthCookieManager.ts index b356f49397..49cb188880 100644 --- a/plugins/auth-node/src/oauth/OAuthCookieManager.ts +++ b/plugins/auth-node/src/oauth/OAuthCookieManager.ts @@ -189,7 +189,7 @@ export class OAuthCookieManager { const { hostname: domain } = new URL(this.options.callbackUrl); output = output.cookie(name, '', { ...this.getRemoveCookieOptions(), - domain: `.${domain}`, + domain: domain, }); }