yTakkar/React-Instagram-Clone-2.0

User remains logged in for hours which is a security issue.

StarAzure opened this issue · 1 comments

Users should be logged out when idle after a specific time. I noticed the users never get logged out. This might pose security code concerns. Thanks.

By default user is logged-in for 24 hours.
If you wanna change it to let's say 1 hour, go ahead and edit this line to 1 * 60 * 60 * 1000