Skip to content

vincentntang/react-session-timeout-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Session Timeout Example

image

This is a demo showcasing how to create a session-timeout modal in React for logging off a user.

Please see the blog post on how this works

https://vincentntang.com/session-timeout-modals-react

and the demo to see it in action

https://react-session-timeout-example.netlify.app/

Installation notes

Pull the repo or fork it

Then run

npm install
npm run start

check out localhost:3000 and it should be running there

wait 5 seconds and don't movee the mouse to see the timeoutmodal