From 6d585baaa9468c4d318c89b037ade609e0878746 Mon Sep 17 00:00:00 2001 From: hong-revo Date: Thu, 3 May 2018 12:10:10 +1000 Subject: [PATCH] correct validation endpoint --- R/AzureToken.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/AzureToken.R b/R/AzureToken.R index e257bb4..92108b8 100644 --- a/R/AzureToken.R +++ b/R/AzureToken.R @@ -27,7 +27,7 @@ public=list( # overrides httr::Token2.0 method validate=function() { - if(!is.null(self$endpoint$request)) + if(!is.null(self$endpoint$validate)) return(super$validate()) expdate <- as.POSIXct(as.numeric(self$credentials$expires_on), origin="1970-01-01")