refresh session cookies
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- firebase, javascript
- Domain
- authentication
Research direction
Start with the linked Firebase session cookies documentation and the repository's existing server/client authentication entry points; no specific files or tests are named in the issue. Define how valid activity should extend the session, how inactivity should log the user out, and how the login redirect should be verified before considering the work complete.
Written by the indexing model from the issue text.
Description
I would like to set the session lifetime for the client to 6 hours. And if the user logged in and did not take any action during this time, then log out him and redirect him to the login page. But if the user has been making requests to the server with a valid token for 6 hours, I would like to update this token and start the token lifetime again.
If I follow the instructions according to the firebase session cookies documentation found here https://firebase.google.com/docs/auth/admin/manage-cookies?hl=en
I can generate the session token on the server in exchange for a idToken and return the session ID to the client as a cookie. And after that we only use the session token between client and server as cookie, We can also check if the session has expired using verifySessionCookie.
but i can't figure out a way of refreshing the session cookie without telling the user to sign in again.
could you help me understand how this can be implemented?
- Dominant language
- JavaScript
- Stars
- 933
- Forks
- 426
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/quickstart-nodejs
-
Ok Open
Difficulty 5/5 Over a week Newbie friendliness 5/100
firebase/quickstart-nodejs#305 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
firebase/quickstart-nodejs#253 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
firebase/quickstart-nodejs#183 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 24/100
firebase/quickstart-nodejs#106 · 6 comments · 3 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
firebase/quickstart-nodejs#97 · 1 comment ·
All issues in firebase/quickstart-nodejs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·