From d71805347be1074762348702c6991d7ddede27c3 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 14 Apr 2021 11:24:13 -0300 Subject: [PATCH] [REGRESSION] SAML stopped working after #2978 (#3060) --- app/views/AuthenticationWebView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/AuthenticationWebView.js b/app/views/AuthenticationWebView.js index b21c85bba..99978b7d7 100644 --- a/app/views/AuthenticationWebView.js +++ b/app/views/AuthenticationWebView.js @@ -88,8 +88,8 @@ class AuthenticationWebView extends React.PureComponent { this.dismiss(); } - // eslint-disable-next-line react/sort-comp - debouncedLogin = debounce(params => this.login(params), 3000, true); + // Force 3s delay so the server has time to evaluate the token + debouncedLogin = debounce(params => this.login(params), 3000); tryLogin = debounce(async() => { const { Accounts_Iframe_api_url, Accounts_Iframe_api_method } = this.props;