firebase / firebase/quickstart-nodejs

refresh session cookies

オープン
#194 コメント 3 件 リアクション 8 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
933
フォーク
425
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされている Firebase セッション Cookie のドキュメントと、リポジトリに既存のサーバー/クライアント認証エントリーポイントから始めてください。issue では特定のファイルやテストは指定されていません。有効なアクティビティによってセッションをどのように延長するか、非アクティブ状態によってユーザーをどのようにログアウトさせるか、そして作業完了とみなす前にログインリダイレクトをどのように検証するかを定義してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
firebase, javascript
領域
authentication
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。