docs(cognito): fix stale enabledAuthFlows javadoc (#4159)

Follow-up from #4081: the javadoc still described the AWS default as covering a client persisted before the default was materialised into storage. Floci never stores that default, so it applies to every client with no ExplicitAuthFlows, not just a legacy one.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-09-22 20:01:12 -05:00
1 parent 4d8af159f6
commit 5c72502551
1 file changed
+3 -2
@@ -186,8 +186,9 @@ final class CognitoAuthFlowHandler {
}
/**
* A client with no stored list, as one persisted before the default was materialised, gets the
* AWS default rather than every flow.
* A client with no stored {@code ExplicitAuthFlows} gets the AWS default rather than every
* flow. Floci never materialises the default into storage, so this covers every such client,
* not just one from before enforcement existed.
*/
private static List<String> enabledAuthFlows(UserPoolClient client) {
List<String> enabled = client.getExplicitAuthFlows();