使用无密码身份验证删除用户帐户?

编程入门 行业动态 更新时间:2024-10-23 19:22:56
本文介绍了使用无密码身份验证删除用户帐户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经为我的react-native应用程序从firebase实现了无密码的SignUp/SignIn,但是我不明白如果需要使用密码重新验证Delete Account方法或需要最近的SignIn刷新令牌来删除它,该如何工作? ?

I have implemented passwordless SignUp/SignIn from firebase for my react-native app but I can't understand how will the delete account method work if it needs to be reauthenticated with a password or needs a recent SignIn to refresh the token??

简而言之,当我使用无密码身份验证时应该如何使用reauthenticateWithCredential()?

In short, how should I use reauthenticateWithCredential() when I'm using Passwordless Authentication??

推荐答案

与电子邮件链接链接/重新认证举例说明了如何从电子邮件链接/无密码登录中获取凭据对象:

The Firebase documentation on Linking/re-authentication with email link has an example of how to get a credentials object from the email link/passwordless sign in:

var credential = firebase.auth.EmailAuthProvider.credentialWithLink(email, window.location.href);

然后您可以将此credential传递给对reauthenticateWithCredential的呼叫.

You can then pass this credential to your call to reauthenticateWithCredential.

更多推荐

使用无密码身份验证删除用户帐户?

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

发布评论

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

>www.elefans.com

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