Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ambiorix-web/scilis

Secure cookies for ambiorix
https://github.com/ambiorix-web/scilis

ambiorix cookies

Last synced: about 1 month ago
JSON representation

Secure cookies for ambiorix

Awesome Lists containing this project

README

        

# Scilis

Secure cookies for [ambiorix](https://ambiorix.dev).

Signs (and unsigns) cookies to ensure they are not tempered with by clients.

## Installation

Get it from Github.

```r
remotes::install_github("devOpifex/scilis")
```

## Example

```r
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()
```