[FedCM] Handle mediation: optional/silent in button mode
This patch handles the two mediation as follows:
- Triggers auto re-authentication (auto account selection) where
applicable withoptional
. - Rejects the promise when
silent
is used in button mode
Bug: 329235198
Change-Id: I71d35ea673266a6e1876f4d6493c8c0cd69a3c2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5710375
Commit-Queue: Yi Gu yigu@chromium.org
Reviewed-by: Christian Biesinger cbiesinger@chromium.org
Cr-Commit-Position: refs/heads/main@{#1328202}