You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of iterating through the constraints we should execute them in parallel via .map as await blocks the loop until resolved.
for (final constraint in jwtConstraints) {
final satisfied =await constraint.isSatisfiedBy(jwt);
_logger.finer(
'JWT-Token constraint ${constraint.description} satisfied: $satisfied');
if (!satisfied) {
throwArgumentError(
'JWT does not satisfy constraint: ${constraint.description}');
}
The text was updated successfully, but these errors were encountered:
Instead of iterating through the constraints we should execute them in parallel via
.map
asawait
blocks the loop until resolved.The text was updated successfully, but these errors were encountered: