From f7410e3700e3b93022cd9c338a9b9a7f627069e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Cle=CC=81ment?= Date: Thu, 26 Mar 2020 15:50:57 +0100 Subject: [PATCH] Fixed date-fns requires --- lib/access-token.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/access-token.js b/lib/access-token.js index 75d1b00f..143ca504 100644 --- a/lib/access-token.js +++ b/lib/access-token.js @@ -2,10 +2,7 @@ const Hoek = require('@hapi/hoek'); const debug = require('debug')('simple-oauth2:access-token'); -const isDate = require('date-fns/isDate'); -const parseISO = require('date-fns/parseISO'); -const addSeconds = require('date-fns/addSeconds'); -const isBefore = require('date-fns/isBefore'); +const { isDate, parseISO, addSeconds, isBefore } = require('date-fns'); const GrantParams = require('./grant-params');