pub async fn execute_flow<A: Authenticator>(flow: &A) -> Result<()>Expand description
Executes an authentication flow and handles the resulting token.
Calls Authenticator::get_token on the provided flow, then attempts
to copy the token to the system clipboard. If clipboard access is
unavailable or fails, the token is printed to standard output as a fallback.
§Arguments
flow- Any type implementing theAuthenticatortrait.
§Errors
Returns an error if the underlying authentication flow fails. Clipboard errors are handled gracefully and do not cause the function to fail.