fix: Allow any SSO validation rather than _all_
This commit is contained in:
@@ -20,14 +20,14 @@ export default class ValidateSSOAccessTask extends BaseTask<Props> {
|
||||
}
|
||||
|
||||
// Check the validity of all the user's associated authentications.
|
||||
const valid = await Promise.all(
|
||||
const valid = await Promise.any(
|
||||
userAuthentications.map(async (authentication) =>
|
||||
authentication.validateAccess({ transaction })
|
||||
)
|
||||
);
|
||||
|
||||
// If any are valid then we're done here.
|
||||
if (valid.includes(true)) {
|
||||
if (valid) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user