Skip to content

Commit de69739

Browse files
committed
Fix check for background credentias check.
1 parent 6dc7b03 commit de69739

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/mfaDevices/mfaDevices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function getLoginClient() {
1616
// We skip the background credentials check because on this screen they should always already have credentials, otherwise the user should not have been directed here in the first place.
1717
// * And we need to avoid that to prevent the authressLoginHostUrl being set to localhost from causing a problem, and attempting to connect to localhost to load the credentials.
1818
// * Realistically this should be off in every case because the user should not have been asked to load mfa devices if they aren't logged in. But if the user does get here and they aren't logged in, this will be a problem, so we do at least sometimes want to refresh the auth token
19-
skipBackgroundCredentialsCheck: window.location.hostname !== 'localhost' }, logger);
19+
skipBackgroundCredentialsCheck: window.location.hostname === 'localhost' }, logger);
2020
}
2121

2222
return cachedLoginClient;

0 commit comments

Comments
 (0)