我想知道如何将自定义身份验证用于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的自定义身份验证
发布评论