Skip to content

Commit

Permalink
Allow copying the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsawriot committed Nov 26, 2023
1 parent 60c541c commit 31b2ebe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ create_token <- function(client, type = "public", browser = TRUE) {
if (browser) {
httr::BROWSE(url, query = query)
} else {
message(paste("Navigate to", httr::modify_url(url, query = query), "to obtain an authorization code"))
message(paste("Navigate to", httr::modify_url(url, query = query), "to obtain an authorization code. Press Enter to the next step."))
rtoot_ask("", pass = FALSE, check_rstudio = FALSE)
}
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 31b2ebe

Please sign in to comment.