firebase / firebase/firebase-admin-node

[FR] Add `returnUserInfo` to Admin SDK

オープン
#2,573 コメント 1 件 リアクション 0 件 担当者 1 名 @lahirumaramba が担当を希望しています 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.**
We currently cannot count the number of users using the Firebase Admin Auth SDK. However, this is available in REST API with more boilerplate.

**Describe the solution you'd like**
Add a `returnUserInfo` function to the Firebase Admin Auth SDK.

**Describe alternatives you've considered**
Running the REST API manually:
```ts
const url = `https://identitytoolkit.googleapis.com/v1/projects/${projectID}/accounts:query?alt=json`;
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${token.access_token}`
},
body: JSON.stringify({
"returnUserInfo": false,
"expression": []
})
};

return await fetch(url, options).then(response => response.json());
```

**Additional context**
Should be simple to add.

J

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

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

評価

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

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

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