R/zzz.R

# Refresh the auth token everytime the library is loaded
.onLoad <- function(libname, pkgname) {
  has_token <- nchar(Sys.getenv("BLIZZARD_AUTH_TOKEN")) > 1
  if(has_token)
    blizz_auth(refresh = TRUE)
}
tyluRp/blizz documentation built on May 8, 2019, 1:53 p.m.