From f3d5f450710f081107b4554705978f88f8b541a5 Mon Sep 17 00:00:00 2001 From: Joan Maspons Date: Fri, 15 Dec 2023 14:48:03 +0100 Subject: [PATCH] Fix The `host_name` argument of `oauth_flow_auth_code()` is deprecated as of httr2 1.0.0. --- R/oauth2.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/oauth2.R b/R/oauth2.R index df289df4..a6aa36fc 100644 --- a/R/oauth2.R +++ b/R/oauth2.R @@ -35,7 +35,7 @@ oauth_request <- function(req) { cache_key = getOption("osmapir.base_api_url"), scope = paste(scope, collapse = " "), pkce = TRUE, - host_name = "127.0.0.1" + redirect_uri = "http://127.0.0.1" ) return(req)