Skip to content

Commit

Permalink
Revert "Add copy nav url ref#146"
Browse files Browse the repository at this point in the history
This reverts commit 279b5ff.
  • Loading branch information
chainsawriot committed Nov 26, 2023
1 parent 279b5ff commit 60c541c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions R/auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,7 @@ create_token <- function(client, type = "public", browser = TRUE) {
if (browser) {
httr::BROWSE(url, query = query)
} else {
nav_url <- httr::modify_url(url, query = query)
if (clipr::clipr_available()) {
clipr::write_clip(nav_url)
url_copied <- "[copied to clipboard]"
} else {
url_copied <- ""
}
message(paste("Navigate to", nav_url, url_copied, "to obtain an authorization code"))
message(paste("Navigate to", httr::modify_url(url, query = query), "to obtain an authorization code"))
}
auth_code <- rtoot_ask(prompt = "enter authorization code: ", pass = TRUE, check_rstudio = TRUE, default = "")
auth2 <- httr::POST(httr::modify_url(url = url, path = "oauth/token"), body = list(
Expand Down

0 comments on commit 60c541c

Please sign in to comment.