From 3d58745bf15711a49d35179b1b3650f57e1b63ac Mon Sep 17 00:00:00 2001 From: Sohail Date: Mon, 12 May 2025 10:33:01 +0530 Subject: [PATCH] feat: Clear flash messages during login (#2772) * feat: Make the auth error message non-sticky in nature --------- Co-authored-by: sohail-hashicorp <198640889+sohail-hashicorp@users.noreply.github.com> --- .../app/routes/scopes/scope/authenticate/method/oidc.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/desktop/app/routes/scopes/scope/authenticate/method/oidc.js b/ui/desktop/app/routes/scopes/scope/authenticate/method/oidc.js index 5539654cf..e51f550c8 100644 --- a/ui/desktop/app/routes/scopes/scope/authenticate/method/oidc.js +++ b/ui/desktop/app/routes/scopes/scope/authenticate/method/oidc.js @@ -70,7 +70,10 @@ export default class ScopesScopeAuthenticateMethodOidcRoute extends Route { * notified and returned to the index. */ @action - @notifyError(() => 'errors.authentication-failed.title', { catch: true }) + @notifyError(() => 'errors.authentication-failed.title', { + catch: true, + sticky: false, + }) error(e) { this.router.transitionTo('scopes.scope.authenticate.method.index'); // rethrow the error to activate the notifyError decorator