@ifaxity/jwt
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@ifaxity/jwt", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "author": "Christian Norrman <christian@faxity.se>", |
@@ -1,2 +0,2 @@ | ||
exports.TokenError = class TokenError extends Error { | ||
class TokenError extends Error { | ||
constructor(message) { | ||
@@ -11,3 +11,3 @@ super(message); | ||
exports.TokenExpiredError = class TokenExpiredError extends TokenError { | ||
class TokenExpiredError extends TokenError { | ||
constructor(message, expiredAt) { | ||
@@ -19,3 +19,3 @@ super(message); | ||
exports.TokenNotBeforeError = class TokenNotBeforeError extends TokenError { | ||
class TokenNotBeforeError extends TokenError { | ||
constructor(message, date) { | ||
@@ -26,1 +26,5 @@ super(message); | ||
} | ||
exports.TokenError = TokenError; | ||
exports.TokenExpiredError = TokenExpiredError; | ||
exports.TokenNotBeforeError = TokenNotBeforeError; |
// Module for signing and verifying JWT tokens | ||
const jws = require('jws'); | ||
const createModel = require('./lib/model'); | ||
const { TokenError } = require('./lib/error'); | ||
const { TokenError } = require('./lib/errors'); | ||
@@ -6,0 +6,0 @@ const { ALGORITHMS } = jws; |
@@ -6,3 +6,3 @@ // Module for signing and verifying JWT tokens | ||
const { TokenError, TokenExpiredError, TokenNotBeforeError } = require('./lib/error'); | ||
const { TokenError, TokenExpiredError, TokenNotBeforeError } = require('./lib/errors'); | ||
const { ALGORITHMS } = jws; | ||
@@ -9,0 +9,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
19766
394