Skip to content

Commit

Permalink
Merge pull request #85 from chainsawriot/auth
Browse files Browse the repository at this point in the history
remove `get_auth_rtoot`
  • Loading branch information
schochastics authored Nov 17, 2022
2 parents b706139 + 3490097 commit 07d813e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions R/auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,6 @@ save_auth_rtoot <- function(token, name = NULL, path = NULL){
invisible(out_file)
}

get_auth_rtoot <- function(){

path <- file.path(tools::R_user_dir("rtoot", "config"), "default.rds")
if(!file.exists(path)){
stop("no token found in default location. Use save_auth_rtoot(token) with a token created from create_token()")
}
readRDS(path)
}

is_auth_rtoot <- function(token) inherits(token, "rtoot_bearer")

#' Convert token to environment variable
Expand Down

0 comments on commit 07d813e

Please sign in to comment.