【文件属性】:
文件名称:fio-website-session:处理* .foundries.io webapps servercookie会话
文件大小:49KB
文件格式:ZIP
更新时间:2021-02-13 01:22:28
JavaScript
快速Web应用程序的基于的会话处理程序。
它基于redis会话存储。
如何使用它
import session from '@foundriesio/web-session' ;
import log from 'log' // Provide a log function.
import redisClient from 'redis-client' // Provide a redis client.
return session ( redisClient , log ) ;
配置
通过具有以下结构的JSON文件:
{
" cookie " : {
" domain " : " The cookie domain name, defaults to localhost " ,
" secure " : " If the cookie should be sec
【文件预览】:
fio-website-session-master
----.gitignore(18B)
----package.json(2KB)
----package-lock.json(130KB)
----src()
--------.eslintrc.json(629B)
--------package.json(23B)
--------store.js(842B)
--------index.js(1KB)
--------config.js(2KB)
--------test()
----LICENSE.md(11KB)
----webpack.config.js(1010B)
----.github()
--------dependabot.yml(142B)
----README.md(2KB)
----.editorconfig(147B)
----.prettierrc(89B)