Skip to content

Commit cd4f978

Browse files
refactor(#22): this commit updates method to accept IReadOnlyCollection of secrets
1 parent ae27133 commit cd4f978

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Applications/Backend/Source/HttpsRichardy.Federation.Application/Mappers/JsonWebKeysMapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ public static JsonWebKeyScheme AsJsonWebKeys(Secret secret)
1515
};
1616
}
1717

18-
public static JsonWebKeySetScheme AsJsonWebKeySetScheme(Secret secret)
18+
public static JsonWebKeySetScheme AsJsonWebKeySetScheme(IReadOnlyCollection<Secret> secrets)
1919
{
2020
return new JsonWebKeySetScheme
2121
{
22-
Keys = [JsonWebKeysMapper.AsJsonWebKeys(secret)]
22+
Keys = [.. secrets.Select(secret => JsonWebKeysMapper.AsJsonWebKeys(secret))]
2323
};
2424
}
2525
}

0 commit comments

Comments
 (0)