From ec3d139fe3fc3a022a8c961e18a948033400924b Mon Sep 17 00:00:00 2001 From: Romain Lesur Date: Sat, 31 Oct 2020 21:52:45 +0100 Subject: [PATCH] increase token validity period to 1 week close #2 --- NEWS.md | 2 ++ R/insee_auth.R | 2 +- man/insee_auth.Rd | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 2161431..675e279 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # apinsee 0.0.1.9000 +* Set the default validity period of tokens to one week (#2). + * Added `DonneesLocales - V0.1` API and `BDM - V1` API. * Added a `NEWS.md` file to track changes to the package. diff --git a/R/insee_auth.R b/R/insee_auth.R index e5a8d1c..2026c0f 100644 --- a/R/insee_auth.R +++ b/R/insee_auth.R @@ -57,7 +57,7 @@ insee_auth <- function(new_auth = FALSE, appname = "DefaultApplication", key = Sys.getenv("INSEE_APP_KEY"), secret = Sys.getenv("INSEE_APP_SECRET"), - validity_period = 86400, + validity_period = 604800, api = c("Sirene - V3", "Nomenclatures - v1", "DonneesLocales - V0.1", "BDM - V1"), cache = FALSE, verbose = TRUE, diff --git a/man/insee_auth.Rd b/man/insee_auth.Rd index cbf7b7b..18df80e 100644 --- a/man/insee_auth.Rd +++ b/man/insee_auth.Rd @@ -10,7 +10,7 @@ insee_auth( appname = "DefaultApplication", key = Sys.getenv("INSEE_APP_KEY"), secret = Sys.getenv("INSEE_APP_SECRET"), - validity_period = 86400, + validity_period = 604800, api = c("Sirene - V3", "Nomenclatures - v1", "DonneesLocales - V0.1", "BDM - V1"), cache = FALSE, verbose = TRUE,