OpenBrowserHook

Replacement for opening the system browser: receives the URL to open.

Replacement for opening the system browser: receives the URL to open.

Return an error when the browser cannot be opened; with SignInMethod::Auto the SDK then falls back to paste-back sign-in.

use sponsorkit::OpenBrowserHook;

pub type OpenBrowserHook = Arc<
    dyn Fn(String) -> BoxFuture<std::io::Result<()>> + Send + Sync,
>;