From 0557dff892d99415d5f4db715c9402aafac8a1f0 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Tue, 16 Apr 2024 10:50:12 +0200 Subject: [PATCH] add comment to explain the logic --- src/Umbraco.Web.UI.Client/src/packages/core/auth/auth-flow.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/auth/auth-flow.ts b/src/Umbraco.Web.UI.Client/src/packages/core/auth/auth-flow.ts index ecf1c20b98..227d2c534d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/auth/auth-flow.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/auth/auth-flow.ts @@ -367,6 +367,7 @@ export class UmbAuthFlow { this.#refreshToken = response.refreshToken; this.#accessTokenResponse = response; } catch (error) { + // If the token request fails, it means the refresh token is invalid, so we sign the user out. console.error('Token request error', error); this.signOut(); }