Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ambiorix-web/scilis
- Owner: ambiorix-web
- License: gpl-2.0
- Created: 2022-03-12T10:01:40.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T06:44:30.000Z (8 months ago)
- Last Synced: 2024-09-05T07:01:36.617Z (3 months ago)
- Topics: ambiorix, cookies
- Language: R
- Homepage: https://ambiorix.dev
- Size: 13.7 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - ambiorix-web/scilis - Secure cookies for ambiorix (R)
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()
```