【发布时间】:2020-12-24 22:27:39
【问题描述】:
const expoLink = Linking.makeUrl();
const actionCodeURL =
" what to write here" + `?redirectUrl=${encodeURIComponent(expoLink)}`;
//sending signInLinkToEmail
const handlePress = () => {
firebase
.auth()
.sendSignInLinkToEmail(email, {
url: actionCodeURL, // what should be its value so that on clicking this will redirect them to app.
handleCodeInApp: true,
})
.then(()=>{});
};
我正在尝试使用 firebase 在我的 expo 应用程序中进行身份验证。我想实现 sendSignInLinkToEmail 以便用户在他/她的电子邮件中收到一个链接。当用户点击链接时,他/她应该被重定向到应用程序。
我卡在 sendSignInLinkToEmail 函数的第二个参数的 URL 部分。
【问题讨论】:
标签: firebase react-native firebase-authentication expo