refresh session cookies
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 20/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- firebase, javascript
研究方向
從連結的 Firebase 工作階段 Cookie 文件以及 repository 中現有的伺服器/用戶端驗證進入點開始;issue 中沒有指定特定檔案或測試。定義有效活動應如何延長工作階段、閒置狀態應如何將使用者登出,以及在將工作視為完成之前應如何驗證登入重新導向。
由索引模型根據 Issue 內容生成。
描述
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?
- 主要語言
- JavaScript
- 星號
- 932
- 分支
- 425
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
firebase/quickstart-nodejs 的其他 Issue
-
Ok未關閉
難度 5/5 一週以上 新手友好度 5/100
firebase/quickstart-nodejs#305 ·
-
難度 4/5 3-5 天 新手友好度 25/100
firebase/quickstart-nodejs#253 ·
-
難度 2/5 1-3 小時 新手友好度 35/100
firebase/quickstart-nodejs#183 · 2 則留言 ·
-
難度 4/5 3-5 天 新手友好度 24/100
firebase/quickstart-nodejs#106 · 6 則留言 · 3 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 20/100
firebase/quickstart-nodejs#97 · 1 則留言 ·
查看 firebase/quickstart-nodejs 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
swc-project/swc-next#1022 ·
維護者通常 1 天內回覆
-
area-clientside-dartpad
難度 2/5 1-3 小時 新手友好度 66/100
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
alphagov/public-asset-checker#378 · 1 則留言 ·
維護者通常 1 天內回覆
-
headers-parser: `forRegExp` does not escape regexp characters in path segments that contain `*`可能已有人在做 @RaphaelFakhri 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆