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

@adonisjs/auth

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/auth - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="3.0.1"></a>
## [3.0.1](https://github.com/adonisjs/adonis-auth/compare/v3.0.0...v3.0.1) (2018-02-07)
### Bug Fixes
* **serializer:** db serializer use columnize method ([8c22f97](https://github.com/adonisjs/adonis-auth/commit/8c22f97))
<a name="3.0.0"></a>

@@ -2,0 +12,0 @@ # [3.0.0](https://github.com/adonisjs/adonis-auth/compare/v2.0.11...v3.0.0) (2018-01-31)

8

package.json
{
"name": "@adonisjs/auth",
"version": "3.0.0",
"version": "3.0.1",
"description": "Offical authentication provider for Adonis framework",

@@ -33,3 +33,3 @@ "main": "index.js",

"cz-conventional-changelog": "^2.1.0",
"edge.js": "^1.1.3",
"edge.js": "^1.1.4",
"fs-extra": "^5.0.0",

@@ -68,4 +68,4 @@ "japa": "^1.0.6",

"debug": "^3.1.0",
"jsonwebtoken": "^8.1.0",
"lodash": "^4.17.4",
"jsonwebtoken": "^8.1.1",
"lodash": "^4.17.5",
"ms": "^2.1.1",

@@ -72,0 +72,0 @@ "resetable": "^1.0.3",

@@ -89,7 +89,7 @@ # AdonisJs Auth 🔒

[travis-image]: https://img.shields.io/travis/poppinss/adonis-auth/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/poppinss/adonis-auth
[travis-image]: https://img.shields.io/travis/adonisjs/adonis-auth/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/adonisjs/adonis-auth
[coveralls-image]: https://img.shields.io/coveralls/poppinss/adonis-auth/develop.svg?style=flat-square
[coveralls-image]: https://img.shields.io/coveralls/adonisjs/adonis-auth/develop.svg?style=flat-square
[coveralls-url]: https://coveralls.io/github/poppinss/adonis-auth
[coveralls-url]: https://coveralls.io/github/adonisjs/adonis-auth

@@ -276,13 +276,14 @@ 'use strict'

debug('finding user for %s token', token)
const self = this
const query = this._getQuery()
return this
._getQuery()
const lhs = query.client.formatter().columnize(`${this._config.table}.${this.primaryKey}`)
const rhs = query.client.formatter().columnize(`${this.tokensTable}.${this.foreignKey}`)
const tokensTable = this.tokensTable
return query
.whereExists(function () {
this
.from(self.tokensTable)
.from(tokensTable)
.where({ token, type, is_revoked: false })
.whereRaw(
`${self._config.table}.${self.primaryKey} = ${self.tokensTable}.${self.foreignKey}`
)
.whereRaw(`${lhs} = ${rhs}`)
}).first()

@@ -289,0 +290,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