pub async fn run_loopback_flow(
cfg: &GoogleOAuthConfig,
on_open: impl FnOnce(&str),
) -> ProviderResult<(TokenSet, String)>Expand description
The whole local sign-in: listen on 127.0.0.1:<random port>, hand the
authorization URL to on_open (open a browser, print it), wait up to
five minutes for Google’s redirect, check state, exchange the code.