From 089f5314922b16c1a353dbe0ea49a6d00c66e47f Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 16 Aug 2022 17:17:18 -0400 Subject: [PATCH] Add redirect_uri to each interaction with login flow (#13389) --- src/auth/ha-auth-flow.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/auth/ha-auth-flow.ts b/src/auth/ha-auth-flow.ts index 6f4e2a1367..a189cf9ab3 100644 --- a/src/auth/ha-auth-flow.ts +++ b/src/auth/ha-auth-flow.ts @@ -359,7 +359,11 @@ class HaAuthFlow extends litLocalizeLiteMixin(LitElement) { } this._submitting = true; - const postData = { ...this._stepData, client_id: this.clientId }; + const postData = { + ...this._stepData, + client_id: this.clientId, + redirect_uri: this.redirectUri, + }; try { const response = await fetch(`/auth/login_flow/${this._step.flow_id}`, {