Grant v4.0.0 Release Notes

Release Date: 2018-03-14 // about 6 years ago
    • ๐Ÿ”„ Change: Officially Node >= 4.0.0 required!
    • ๐Ÿ”„ Change: Dropped the request dependency in favor of request-compose
    • ๐Ÿ”„ Change: Return errors more consistently based on the transport used (see below)
    • ๐Ÿ”„ Change: The internal session variable step1 was renamed to request
    • ๐Ÿ”„ Change: The internal _config property is no longer exposed
    app.use(new Grant({server: {transport: 'session'}}))
    app.get('/final_callback', (req, res) => {
      if (req.query.error) {} // v3.x
      if (req.session.grant.response.error) {} // v4.x
    })