Scilis
Secure cookies for ambiorix.
Installation​
Get it from Github.
remotes::install_github("devOpifex/scilis")
Example​
library(scilis)
library(ambiorix)
app <- Ambiorix$new()
# use an environment variable
app$use(scilis("secret"))
app$get("/", \(req, res) {
print(req$cookie)
res$cookie(
"MYCOOKIE",
"This is secure"
)
res$send("Added cookie")
})
app$start()