This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const inactivityTime = () => { | |
let time; | |
const resetTimer = () => { | |
clearTimeout(time); | |
time = setTimeout(() => { | |
const resposeTimeout = setTimeout(() => { | |
// log out user if they don't respond to warning after 5 minutes. | |
logOut(); | |
}, 300000) | |
// Show warning after 20 minutes of no activity. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const configurations = { | |
"some_secret": "231wutedutwfqytrytwefu" | |
} |