Firebase的自定义身份验证 [英] Custom authentication for firebase

查看:116
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆