Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CB-5357 Expiring license notification is not shown after login #2767

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ export class AuthenticationService extends Bootstrap {
}
}

if (this.authPromise) {
await this.waitAuth();
return;
}

this.authPromise = this.authDialogService
.showLoginForm(persistent, options)
.then(async state => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const AuthDialog: DialogComponent<IAuthOptions, null> = observer(function
payload: { providerId, configurationId, linkUser = false, accessRequest = false },
options,
rejectDialog,
resolveDialog,
}) {
const styles = useS(style);
const dialogData = useAuthDialogState(accessRequest, providerId, configurationId);
Expand Down Expand Up @@ -89,7 +90,7 @@ export const AuthDialog: DialogComponent<IAuthOptions, null> = observer(function
try {
await dialogData.login(linkUser, provider, configuration);

rejectDialog();
resolveDialog();
} catch {}
}

Expand Down
Loading