📌  相关文章
📜  检查电子邮件是否存在 firebase - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:34.550000             🧑  作者: Mango

代码示例1
//check email already exist or not.
    firebaseAuth.fetchSignInMethodsForEmail(email)
            .addOnCompleteListener(new OnCompleteListener() {
                @Override
                public void onComplete(@NonNull Task task) {

                    boolean isNewUser = task.getResult().getSignInMethods().isEmpty();

                    if (isNewUser) {
                        Log.e("TAG", "Is New User!");
                    } else {
                        Log.e("TAG", "Is Old User!");
                    }

                }
            });