-
- complete rewrite from the ground up
- based on the `v2` of [koa-better-body](https://github.com/tunnckoCore/koa-better-body/milestones/v2)
- support id option #3
- use `filter-array` #5
- use `dat…
-
目前ctx.isAuthenticated()在路由中默认为true,只能清除cookie或者触发this.logout() 才能清除登陆状态让isAuthenticated返回false,关闭浏览器也不行
怎么能像koa这种设置路由session呢,想把项目从koa迁到egg,就是一直卡在登陆这块。。。。。。。。
附地址:https://github.com/Yunfly/egg-pas…
-
It took me a couple hours this morning to figure this all out, so I'd like to document it here, and with some guidance from the maintainer I am willing to provide a PR for either the documentation or …
-
I'm using `koa-session` with params:
```
{
key: 'sid',
prefix: 'sess:',
httpOnly: true,
path: '/',
overwrite: true,
signed: false,
maxA…
-
## 引言
什么是 `koa`?
koa 是一个基于 node 实现的一个新的 web 框架,它是由 `express` 框架的原班人马打造。特点是优雅、简洁、表达力强、自由度高。和 express 相比,它是一个更轻量的 node 框架,因为它所有的功能都通过插件来实现,这种插拔式的架构设计模式,很符合 unix 哲学。
本文从零开始,循序渐进的展示和详解上手 `koa2` 框…
-
## 前言
随着技术的不断发展,前端工程师也被赋予了越来越多的职责。不再是从前只需要切个图,加个css样式就能完成任务的切图仔了。接下来这篇文章,完成一个简单的登录注册,能让你快速上手,成为一个‘小全栈工程师’,here we go !
![15371488705139](https://user-images.githubusercontent.com/23029985/4692…
-
## Middleware
- [x] monitor: [express-status-monitor](https://github.com/RafalWilinski/express-status-monitor) and [koa-monitor](https://github.com/capaj/koa-monitor)
- [ ] [helmet](https://github.…
-
Say cookie name is `foo`. When you do `ctx.session = null;`, on client side, the cookie `foo.sig` is cleared, the cookie `foo` is still there with its original value.
Why is it done this way? How t…
-
Not sure if this package is still being maintained, but I noticed that in the scheduleCleanup method, the value being passed to the query() method, the date value, should be an array, i.e.
`sess.qu…
ghost updated
6 years ago
-
koa项目工程化,搭建属于自己的开发利器!
.
├── app.js
├── config
│ └── index.js
├── constant
│ └── constant.js
├── controller
│ ├── exportExcle.js
│ ├── orders.js
│ ├── pay.js
│ └── upload.js
├…