Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# httr2 (development version)

* disabled check for interactive session `oauth_flow_check(..., interactive)` on device code flow to print URL and device code as intended (@flahn, #170)

* The environment variable `HTTR2_REFRESH_TOKEN` replaces the previous `HTTR_REFRESH_TOKEN` (@jennybc, #169).

* OAuth tokens can now be refreshed. One, two, or even more times! (@jennybc, #166)
Expand Down
2 changes: 1 addition & 1 deletion R/oauth-flow-device.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ oauth_flow_device <- function(client,
scope = NULL,
auth_params = list(),
token_params = list()) {
oauth_flow_check("device", client, interactive = TRUE)
oauth_flow_check("device", client, interactive = is_interactive())

if (pkce) {
code <- oauth_flow_auth_code_pkce()
Expand Down