Firebase的自定义身份验证

编程入门 行业动态 更新时间:2024-10-24 06:29:09
本文介绍了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的自定义身份验证

本文发布于:2023-11-04 00:53:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1556514.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   身份验证   Firebase

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!