firebase / firebase/firebase-admin-node

[FR] auth: Allow expiry to be specified in .createCustomToken

オープン
#1,016 コメント 26 件 リアクション 14 件 担当者 1 名 @prameshj に割り当て済み GitHub で見る
api: auth type: feature request
主要言語
TypeScript
スター
1.7k
フォーク
419
平均マージ
3日 10時間
マージ済み PR(30日)
16

説明

**Is your feature request related to a problem? Please describe.**

It would be good if you could specify the duration of time you would like the login token to be valid for. For our use at least, the result of `.createCustomToken` is mostly used immediately after being provided to the client, so we'd like to have a very short expiry time.

**Describe the solution you'd like**

Update `.createCustomToken` or a new method `.createCustomTokenWithOptions` that takes an expiry.

**Describe alternatives you've considered**

Using the details from [create custom tokens using a third-party JWT library](https://firebase.google.com/docs/auth/admin/create-custom-tokens#create_custom_tokens_using_a_third-party_jwt_library), but this seems a bit redundant when the SDK is so close to providing what is needed.

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

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

評価

この issue はまだ評価されていません。

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

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