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 Versions

1235

1.1.0

Diff

Changelog

Source

1.1.0

Make the req mock to inherit from Koa's request object before adding delegates for Node's request and Koa's context to it. This makes custom properties/methods added to Koa's request available to passport and its authentication strategies.

rkusa
published 1.0.1 •

Changelog

Source

1.0.1

  • add flash to the req mock
rkusa
published 1.0.0 •

Changelog

Source

1.0.0

Using ES6 Proxy currently breaks debugging (see #17). Until this is fixed, the Proxy approach got replace by delegating a whitelist of possible used properties/methods to either Node's request, Koa's context or Koa's request.

Note: There is nothing special about this being 1.0.0. The major version bump is just because the update could possible break something.

rkusa
published 0.5.1 •

Changelog

Source

0.5.1

  • re-add authenticated user to req.user
rkusa
published 0.5.0 •

Changelog

Source

0.5.0

  • internal improvements (neither modify Node's request nor Koa's request object by mocking the req object with a proxy that forwards reads to either Node's request object, Koa's request object or Koa's context)
  • --harmony-proxies has to enabled now
rkusa
published 0.4.0 •

Changelog

Source

0.4.0

  • Add support for custom authentication methods, e.g.:
public.post('/login', function*(next) {
  var ctx = this
  yield* passport.authenticate('local', function*(err, user, info) {
    if (err) throw err
    if (user === false) {
      ctx.status = 401
      ctx.body = { success: false }
    } else {
      yield ctx.login(user)
      ctx.body = { success: true }
    }
  }).call(this, next)
})
rkusa
published 0.3.2 •

Changelog

Source

0.3.2

  • add generator function names for Koa debugging purposes
rkusa
published 0.3.1 •

Changelog

Source

0.3.1

  • make ctx.login() yieldable
rkusa
published 0.3.0 •

Changelog

Source

0.3.0

  • adapt recent Koa API changes
rkusa
published 0.2.0 •

Changelog

Source

0.2.0

  • `passport 0.2.x compatibility
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