【问题标题】:How to get the UID in Firebase using only email如何仅使用电子邮件在 Firebase 中获取 UID
【发布时间】:2019-07-09 14:43:49
【问题描述】:

在 Firebase 的控制面板中,您可以通过电子邮件 Screenshot to understand 搜索 UID

我目前正在使用这个库来使用 Firebase SDK,使用 PHP https://firebase-php.readthedocs.io/en/stable/user-management.html?highlight=users#list-users

有什么想法可以通过发送电子邮件参数来获取我项目中注册用户的 UID,而无需下载整个用户列表?

【问题讨论】:

    标签: javascript php api firebase firebase-authentication


    【解决方案1】:

    通过阅读库的代码,似乎有一个getUserByEmail method。你应该可以这样称呼它:

    $user = $auth->getUserByEmail('user@domain.com');
    

    【讨论】:

    • 我同意这条消息:)。感谢您筛选代码以找到它。我忘记记录该方法,但通过在 firebase-php.readthedocs.io/en/latest/… 中添加调用来解决此问题
    • 谢谢杰罗姆。感谢您如此积极地维护您的 PHP 库。我一直对它的广泛性感到惊讶。
    • 像你这样的反馈让我继续前进
    猜你喜欢
    • 2018-11-28
    • 2017-01-23
    • 2020-11-28
    • 1970-01-01
    • 2019-01-21
    • 1970-01-01
    • 2023-03-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多