Skip to content

Commit

Permalink
Re-document
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Aug 31, 2023
1 parent ae7b7eb commit 9c0329b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
13 changes: 7 additions & 6 deletions R/oauth-flow-auth-code.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,15 @@ req_oauth_auth_code <- function(req, client,
#' Often this must be registered with the API in advance.
#'
#' httr2 supports two forms of redirect. Firstly, you can use a `localhost`
#' url (the default), in which case httr2 will set up a temporary webserver
#' to listen for the redirect. This works well when you are working on your
#' own computer. In this case, httr2 will automatically append a random port.
#' If you need to set it to a fixed port because the API requires
#' it, then specify it with (e.g.) `"http://localhost:1011"`
#' url (the default), where httr2 will set up a temporary webserver to listen
#' for the OAuth redirect. In this case, httr2 will automatically append a
#' random port. If you need to set it to a fixed port because the API requires
#' it, then specify it with (e.g.) `"http://localhost:1011"`. This technique
#' works well when you are working on your own computer.
#'
#' Alternatively, you can provide a URL to a website that uses javascript to
#' give the user a code to copy and paste back into the R session. This is
#' give the user a code to copy and paste back into the R session (see
#' <https://www.tidyverse.org/google-callback/>, for an example). This is
#' less convenient (because it requires more user interaction) but also works
#' in hosted environments.
#'
Expand Down
13 changes: 7 additions & 6 deletions man/oauth_flow_auth_code.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions man/req_oauth_auth_code.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9c0329b

Please sign in to comment.