Skip to content

Commit

Permalink
add error case for auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac Davies committed Nov 9, 2024
1 parent 54ca62a commit 5275e3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/request-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ db_request <- function(endpoint, method, version = NULL, body = NULL, host, toke
redirect_uri = "http://localhost:8020"
)

} else {
cli::cli_abort("cannot find token or initiate OAuth U2M flow")
}

if (!is.null(body)) {
Expand Down

0 comments on commit 5275e3b

Please sign in to comment.