Skip to content

Commit

Permalink
Check password more lazily (#499)
Browse files Browse the repository at this point in the history
Maybe fixes #498
  • Loading branch information
hadley committed Jul 12, 2024
1 parent 94417c8 commit d733424
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/oauth-flow-password.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ req_oauth_password <- function(req,
cache_disk = FALSE,
cache_key = username) {

password <- check_password(password)
params <- list(
client = client,
username = username,
Expand All @@ -56,12 +55,11 @@ oauth_flow_password <- function(client,
interactive = is.null(password)
)
check_string(username)
password <- check_password(password)

oauth_client_get_token(client,
grant_type = "password",
username = username,
password = password,
password = check_password(password),
scope = scope,
!!!token_params
)
Expand Down

0 comments on commit d733424

Please sign in to comment.