Angular firebase email verification false after verify

后端 未结 1 669
余生分开走
余生分开走 2020-12-18 17:52

I\'m setting up an authorisation function with e-mail and password. Everything works fine but when i create a new user, the application sends an e-mail with a verification l

相关标签:
1条回答
  • 2020-12-18 18:22

    This is not a bug, but expected behavior.

    Email verification happens out of band (as in: you click a link in your email client, not in the app), so the app is not aware of the verification status being changed. This means that it can't automatically refresh the ID token, which is where the client gets profile information comes from, in the client.

    The token auto-refreshes every hour, so it will update eventually. If you want to get the updated value sooner, you can force the token to refresh.

    Also see:

    • Firebase email verification not updating status
    • the answer I just gave here: Firebase custom claim how to set?
    • Firebase firestore not updating email verification status
    • Firebase email verification doesn't verify account
    • user.emailVerified doesn't change after clicking email verification link firebase
    0 讨论(0)
提交回复
热议问题