Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Keep users logged in until they log out #658

Closed
ro-tex opened this issue Mar 31, 2021 · 1 comment
Closed

Keep users logged in until they log out #658

ro-tex opened this issue Mar 31, 2021 · 1 comment

Comments

@ro-tex
Copy link
Contributor

ro-tex commented Mar 31, 2021

Description

Done

We need the cookies (and JWT tokens, respectively) to last significantly longer than 24 hours. That is already changed to be 30 days in NebulousLabs@eefc733.

To do

The above is still insufficient as the user might not login/logout each 30 days and they might not notice that their cookie has expired. For that we need the portal to actively monitor the age of the cookie and redirect to accounts's /login endpoint if the cookie has less than 29 days to live. That will ensure that we'll keep users' cookies fresh.

Afaik, this cannot be handled directly in accounts, as the user's browser is not redirected to accounts during normal skapp usage.

@ro-tex ro-tex changed the title Keep users logged in untile they log out Keep users logged in until they log out Apr 9, 2021
@kwypchlo kwypchlo reopened this Feb 17, 2022
@kwypchlo
Copy link
Collaborator

kwypchlo commented Jul 1, 2022

duplicate of SkynetLabs/webportal-accounts-dashboard#33

closing this in favour of the new one since the new one had more conversation on it

@kwypchlo kwypchlo closed this as completed Jul 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants