1 回答
TA贡献1862条经验 获得超6个赞
使用continueUrl确实是正确的方法。根据mode您可以决定要处理的操作,然后您可以continueUrl在用户执行相应操作后重定向到。
例如,您参考的文档// TODO: If a continue URL is available...显示了以下示例(注意注释):
function handleVerifyEmail(auth, actionCode, continueUrl, lang) {
// Localize the UI to the selected language as determined by the lang
// parameter.
// Try to apply the email verification code.
auth.applyActionCode(actionCode).then(function(resp) {
// Email address has been verified.
// TODO: Display a confirmation message to the user.
// You could also provide the user with a link back to the app.
// TODO: If a continue URL is available, display a button which on
// click redirects the user back to the app via continueUrl with
// additional state determined from that URL's parameters.
}).catch(function(error) {
// Code is invalid or expired. Ask the user to verify their email address
// again.
});
}
添加回答
举报