From 3b73d7c2988a5d8e1fc5f623a2770299b3a867c9 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Fri, 21 Nov 2025 13:01:02 +0100 Subject: [PATCH] Dont add store token for external auth flows (#28026) * Dont add store token for external auth flows * Apply suggestion from @MindFreeze --------- Co-authored-by: Petar Petrov --- src/auth/ha-auth-flow.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth/ha-auth-flow.ts b/src/auth/ha-auth-flow.ts index 8125ff1d58..85446f199b 100644 --- a/src/auth/ha-auth-flow.ts +++ b/src/auth/ha-auth-flow.ts @@ -59,7 +59,8 @@ export class HaAuthFlow extends LitElement { willUpdate(changedProps: PropertyValues) { super.willUpdate(changedProps); - if (!this.hasUpdated) { + if (!this.hasUpdated && this.clientId === genClientId()) { + // Preselect store token when logging in to own instance this._storeToken = this.initStoreToken; }