如何压缩/缩短Firebase电子邮件验证链接。 (iOS Swift)

时间:2018-11-08 14:59:27

标签: ios swift firebase firebase-authentication email-validation

在firebase管理用户文档中,我找不到压缩或缩短电子邮件验证链接长度的任何方法。功能正常,但从用户角度来看,此链接看起来很长很奇怪。我在互联网上进行搜索,但未找到任何解决方案。下面是我的代码,请输入代码:

var actionCodeSettings =  ActionCodeSettings.init()
actionCodeSettings.handleCodeInApp = false
let user = FirebaseAuthenticationHandler.shared.currentFirebaseUser
actionCodeSettings.url = URL.init(string:  String(format: "https://example.firebaseapp.com/?verifyemail=%@", user.email!))
actionCodeSettings.setIOSBundleID(Bundle.main.bundleIdentifier!)
user.sendEmailVerification(with: actionCodeSettings, completion: { (error) in
    if error != nil {
        print("\(error?.localizedDescription)")
    } else {
        print("Verfication email sent")
    }

这是我收到的链接的屏幕截图:Click Here for Screenshot

0 个答案:

没有答案
相关问题