Vue.js Developers
Published in

Vue.js Developers

How to set timer idle in Vue

Do you need to check for the inactivity of the user in your Vue apps? If the user is inactive in a period of time, then you wanna automatically log out the user or show a timer first. Normally, a system with confidential data likes bank normally implement this kind of feature.

Goals

To have Vue apps that listen for inactivity for 3 seconds and show a modal with a 10-second timer. If…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store