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');