Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koa-passport

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-passport - npm Package Compare versions

Comparing version 4.1.4 to 5.0.0

4

CHANGELOG.md
# Changelog
## 5.0.0
- upgrade `passport` to 0.6
## 4.1.4

@@ -4,0 +8,0 @@

9

package.json

@@ -7,3 +7,3 @@ {

},
"version": "4.1.4",
"version": "5.0.0",
"description": "Passport middleware for Koa",

@@ -21,10 +21,9 @@ "keywords": [

"dependencies": {
"passport": "^0.4.0"
"passport": "^0.6.0"
},
"devDependencies": {
"chai": "^4.2.0",
"jest": "^28.1.3",
"koa": "^2.6.2",
"koa-bodyparser": "^4.2.1",
"koa-route": "^3.2",
"mocha": "^8.3.1",
"passport-local": "^1.0",

@@ -39,3 +38,3 @@ "supertest": "^6.1.3"

"scripts": {
"test": "mocha"
"test": "jest --testMatch '**/test/*.js'"
},

@@ -42,0 +41,0 @@ "engines": {

@@ -9,14 +9,9 @@ # koa-passport

koa-passport version | koa version | branch
--------------------- | ------------| ------
1.x | 1.x | v1.x
2.x | 2.x | v2.x
4.x | 2.x | master
koa-passport version | passport version | koa version | branch
--------------------- | ---------------- | ------------| ------
5.x | 6.x, 5.x | 2.x | main
4.x | 4.x | 2.x | v3.x
3.x, 2.x | 2.x | 2.x | v2.x
1.x | 1.x | 1.x | v1.x
## Migration to `v3`
- change `ctx.passport.*` to `ctx.state.*` (e.g. `ctx.passport.user` to `ctx.state.user`)
- don't call passport methods on `ctx.req` (e.g. use `ctx.login` instead of `ctx.req.login`)
- update custom authentication callback arguments to `err, user, info, status` (e.g. `passport.authenticate('local', function(err, user, info, status) { ... })(ctx, next)`)
## Usage

@@ -23,0 +18,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc