Skip to content

Commit 8d2b9f7

Browse files
author
mckeea
committed
token() update: get new token if the value is null
1 parent a386bb9 commit 8d2b9f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

R/auth.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Auth <- R6::R6Class("Auth", # nolint: object_name_linter.
2828
#' @return A character string representing the retrieved token.
2929
#' @export
3030
token = function() {
31+
if (is.null(private$token_value)) {
32+
self$get_token()
33+
}
3134
private$token_value
3235
},
3336

0 commit comments

Comments
 (0)