Skip to content

Commit

Permalink
[FIX] Custom OAuth and iframe login attempts being called multiple ti…
Browse files Browse the repository at this point in the history
…mes (#3020)
  • Loading branch information
diegolmello authored Apr 1, 2021
1 parent bb844e5 commit 31d3594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/AuthenticationWebView.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class AuthenticationWebView extends React.PureComponent {
if (this.oauthRedirectRegex.test(url)) {
const parts = url.split('#');
const credentials = JSON.parse(parts[1]);
this.login({ oauth: { ...credentials } });
this.debouncedLogin({ oauth: { ...credentials } });
}
}

Expand All @@ -138,7 +138,7 @@ class AuthenticationWebView extends React.PureComponent {
this.tryLogin();
break;
case 'login-with-token':
this.login({ resume: credentials.token || credentials.loginToken });
this.debouncedLogin({ resume: credentials.token || credentials.loginToken });
break;
default:
// Do nothing
Expand Down

0 comments on commit 31d3594

Please sign in to comment.