Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ddm1315 committed Sep 13, 2024
1 parent 600294b commit 3d57287
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const debug = {
}

const wellKnownObject = {}
let wellKnownTimeoutId

module.exports = async function (clientId, clientSecret, options) {
const byuJwt = ByuJwt(options)
Expand Down Expand Up @@ -189,7 +188,7 @@ async function getTokenEndpoints (wellKnown) {

// set cache timeout
// NOTE: added 'unref' to allow scripts to finish when not running package within a server
wellKnownTimeoutId = setTimeout(() => {
setTimeout(() => {
debug.wellKnown('cache expired')
getTokenEndpoints(wellKnown)
.catch(err => {
Expand Down

0 comments on commit 3d57287

Please sign in to comment.