gpt4 book ai didi

python - 使用 python 从 firebase 注销

转载 作者:行者123 更新时间:2023-12-01 09:08:37 27 4
gpt4 key购买 nike

我正在使用 django webapp。我使用

登录
import pyrebase

firebase = pyrebase.initialize_app(config)
authe = firebase.auth()
user = authe.sign_in_with_email_and_password(email,password)

我如何以类似的方式注销。

最佳答案

您可以调用signOut() firebase.auth 接口(interface)提供的功能和文档所述:

Signs out the current user.

所以在你的例子中:

authe.signOut()

关于python - 使用 python 从 firebase 注销,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51843075/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com