Firebase的自定义身份验证 [英] Custom authentication for firebase
问题描述
我想知道如何将自定义身份验证用于Firebase. 只想知道是否有一个REST API即可更改用户数据或将用户数据插入Firebase数据库中.
I want to know how I can use my custom authentication for firebase. Just want to know even if there is a rest api to change the user data or insert user data into firebase databases.
很抱歉,这个问题太含糊.
Sorry if the question is too vague.
谢谢
推荐答案
您无法通过Firebase REST API登录用户.
You cannot sign in a user through the Firebase REST API.
For custom authentication you need to handle sign-in of the user yourself and then you will need to mint custom tokens on your own app server and pass it back to the client.
然后,客户端可以使用自定义令牌对Firebase数据库进行身份验证通过其REST API 并将其传递给auth
参数.
The client can then use the custom token to authenticate with the Firebase Database through its REST API by passing it into the auth
parameter.
这篇关于Firebase的自定义身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!