Skip to content

Commit 4024ffc

Browse files
authored
Weaken oauth_flow_check() in oauth_flow_device() (#171)
Fixes #170
1 parent 2fa1dde commit 4024ffc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# httr2 (development version)
22

3+
* disabled check for interactive session `oauth_flow_check(..., interactive)` on device code flow to print URL and device code as intended (@flahn, #170)
4+
35
* The environment variable `HTTR2_REFRESH_TOKEN` replaces the previous `HTTR_REFRESH_TOKEN` (@jennybc, #169).
46

57
* OAuth tokens can now be refreshed. One, two, or even more times! (@jennybc, #166)

R/oauth-flow-device.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ oauth_flow_device <- function(client,
5858
scope = NULL,
5959
auth_params = list(),
6060
token_params = list()) {
61-
oauth_flow_check("device", client, interactive = TRUE)
61+
oauth_flow_check("device", client, interactive = is_interactive())
6262

6363
if (pkce) {
6464
code <- oauth_flow_auth_code_pkce()

0 commit comments

Comments
 (0)