Project

General

Profile

Feature #3689

Keep the user logged in till they explicitly logout

Added by Ayanava Karmakar 4 months ago. Updated 4 months ago.

Status:
Review
Priority:
Normal
Start date:
07/30/2024
Due date:
% Done:

100%

Estimated time:

Description

After an user logs in, we get an access_token from Google with fixed expiry time of 60 minutes. When this expires and user visits the site, they'll see the Login Overlay again and need to login.

New implementation:

1) user visits site. we check local storage for user email ID
2) if email ID not present ---> show UI State: Logged Out
3) if email ID present ---> show UI State: Logged In
4) when user manually logs out ---> remove user's email ID from user storage
5) Flow: user visits site ----> show loading animation during #1 ---> end loading animation ---> show UI state. auto page reload not needed

Also available in: Atom PDF