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,