fix: Allow any SSO validation rather than _all_
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
"extends": [
|
||||
"../.eslintrc"
|
||||
],
|
||||
"parserOptions": {
|
||||
"project": "./tsconfig.json"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["scripts/*"],
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
6
server/tsconfig.json
Normal file
6
server/tsconfig.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"lib": ["dom", "es2021", "dom.iterable"],
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user