Installations
npm install koa-one-time-csrf
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
6.2.2
NPM Version
3.9.5
Score
60.2
Supply Chain
61.4
Quality
73.9
Maintenance
100
Vulnerability
99.6
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
dzy321
Download Statistics
Total Downloads
2,344
Last Day
1
Last Week
8
Last Month
9
Last Year
133
GitHub Statistics
9 Commits
2 Watching
1 Branches
1 Contributors
Bundle Size
234.38 kB
Minified
68.97 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.1.4
Package Id
koa-one-time-csrf@0.1.4
Size
2.76 kB
NPM Version
3.9.5
Node Version
6.2.2
Total Downloads
Cumulative downloads
Total Downloads
2,344
Last day
0%
1
Compared to previous day
Last week
700%
8
Compared to previous week
Last month
200%
9
Compared to previous month
Last year
-26.9%
133
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
#Koa one time csrf
One time csrf middleware fro koa2
Requirements
- Node v6.0+
- redis
Workflow
npm install
Use
app.use(require('koa-one-time-csrf')(opts))
ctx.body = await ctx.getNewCsrf();
Options
const defaultOptions = {
maxAge: 1000 * 60 * 60, //tokens store in reids max age
prefix: 'afcsrf', //redis key prefix
redis: { //redis config
host: '127.0.0.1',
prot: 6379,
db: 0,
},
};
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2024-12-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More