@appliedblockchain/adonis-auth
Advanced tools
Comparing version 3.0.6 to 3.0.7
{ | ||
"name": "@appliedblockchain/adonis-auth", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "Offical authentication provider for Adonis framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -393,6 +393,7 @@ 'use strict' | ||
console.log('JWT PAYLOAD', this.jwtPayload) | ||
let uid = this.jwtPayload.uid | ||
if (!uid && typeof this.jwtPayload === 'number') { | ||
uid = this.jwtPayload | ||
// backwards compat with adonis-auth ~1.0.7 | ||
if (!uid && this.jwtPayload.payload && this.jwtPayload.payload.uid) { | ||
uid = this.jwtPayload.payload.uid | ||
} | ||
@@ -399,0 +400,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110050