firebase身份验证UID是否过期? [英] Does firebase auth UID expires or not?
问题描述
我打算在后端Web服务中将 auth.UID
用作每个用户的api_key
I'm goning to use auth.UID
in my backend web service as api_key for each user
如果 UID
是最终键或它过期/更改,我会很受伤
I wounder if UID
is final key or it expires/changes
推荐答案
auth.UID
将永不过期.要记住的一件事是,仅当用户不删除其帐户时, auth.UID
始终相同.如果您让用户可以删除他们的帐户,如果他们再次向您的应用程序中唱歌,则会生成另一个 UID
,它与第一个UID不同.并非每次UID都是识别用户的好方法.
The auth.UID
will never expire. One thing to keep in mind is that the auth.UID
will always be the same only if the user does not delete his account. If you let the users the posibility to delete their accounts, if they will sing in again into your app, another UID
will be generated, which will be different from the first one. Not every time the UID is a good solution for identifying a user.
这篇关于firebase身份验证UID是否过期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!