From fdda6d8df7c96822a67445883a287c514e8c45e7 Mon Sep 17 00:00:00 2001 From: Pedro Z Date: Tue, 13 Jan 2026 18:54:13 +0100 Subject: [PATCH] Move check_installed call for httpuv inside localhost block --- R/oauth-flow-auth-code.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/oauth-flow-auth-code.R b/R/oauth-flow-auth-code.R index 885b0346..ca695c19 100644 --- a/R/oauth-flow-auth-code.R +++ b/R/oauth-flow-auth-code.R @@ -193,14 +193,14 @@ normalize_redirect_uri <- function(redirect_uri, error_call = caller_env()) { localhost <- parsed$hostname %in% c("localhost", "127.0.0.1") if (localhost) { - check_installed("httpuv", "for desktop OAuth", call = NULL) if (is_hosted_session()) { cli::cli_abort( "Can't use localhost {.arg redirect_uri} in a hosted environment.", call = error_call ) } - + + check_installed("httpuv", "for desktop OAuth", call = NULL) if (is.null(parsed$port)) { parsed$port <- httpuv::randomPort() }