Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Findeton committed Jul 18, 2024
1 parent 049e92f commit 9266ba5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions avRegistration/auth-method-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ angular.module('avRegistration')
// Only try to renew token when it's older than 50% of
// the expiration time
var now = new Date();
console.log("an interaction happened!");
if (!hasPassedHalfLifeExpiry(now.getTime(), isAdmin)) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/appCommon-v10.4.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
authmethod.lastAuthDate = new Date(), !authmethod.iddleDetectionSetup) return authmethod.iddleDetectionSetup = !0,
callback = function() {
var now = new Date();
hasPassedHalfLifeExpiry(now.getTime(), isAdmin) && (authmethod.lastAuthDate = now,
console.log("an interaction happened!"), hasPassedHalfLifeExpiry(now.getTime(), isAdmin) && (authmethod.lastAuthDate = now,
authmethod.refreshAuthToken(autheventid));
}, [ "click", "keypress", "mousemove", "mousedown", "touchstart", "touchmove" ].forEach(function(event) {
document.addEventListener(event, callback);
Expand Down

0 comments on commit 9266ba5

Please sign in to comment.