简体   繁体   中英

How to listen to changes in user authentication verification

我想监听 isEmailVerified 布尔值的更改,并在用户验证他们的电子邮件后立即执行操作。

Try the following

    FirebaseAuth.getInstance().addAuthStateListener {
            val user = FirebaseAuth.getInstance().currentUser
            val emailVerified = user!!.isEmailVerified
        }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM