Skip to content

Commit 3b73d7c

Browse files
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 <[email protected]>
1 parent 2955cb4 commit 3b73d7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/auth/ha-auth-flow.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ export class HaAuthFlow extends LitElement {
5959
willUpdate(changedProps: PropertyValues) {
6060
super.willUpdate(changedProps);
6161

62-
if (!this.hasUpdated) {
62+
if (!this.hasUpdated && this.clientId === genClientId()) {
63+
// Preselect store token when logging in to own instance
6364
this._storeToken = this.initStoreToken;
6465
}
6566

0 commit comments

Comments
 (0)