Skip to content

[Bug] isEmailVerified is always false on new app session even after email was verified #530

@novavision

Description

@novavision

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2021.3.11f1
  • Firebase Unity SDK version: 10.0.1
  • Source you installed the SDK: .unitypackage
  • Problematic Firebase Component: Auth
  • Other Firebase Components in use: Database
  • Additional SDKs you are using: -----
  • Platform you are using the Unity editor on: Windows
  • Platform you are targeting: iOS, Android
  • Scripting Runtime: IL2CPP
  • Pre-built SDK from the website or open-source fr
    om this repo: _____

[REQUIRED] Please describe the issue here:

Cashed FirebaseUser isEmailVerified property is not correct on app start. Seems like that value is not updated properly after email verified and always reset to false on new app session.

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? No
What's the issue repro rate? 100%

What happened? How can we make the problem occur?
I have a email authentication in the app with email verification. Everything is simple:

  1. User signed up
  2. I request to verify the email
  3. User is able to click "I've verified" button withing same session OR he will be requested to input email credentials in the next session
  4. Using ReauthenticateAsync(credential) I receive "updated" FirebaseUser data where I see that email is verified.
  5. However on new session just after dependencies check FirebaseUser.isEmailVerifdied is false again. Running FirebaseManager.AuthInstance.CurrentUser.ReloadAsync() updates that property to actual true

Relevant Code:

// TODO(you): code here to reproduce the problem

Actually the code I used all taken from GetStarted Untiy web page. Nothing added. Seems that is just an internal firebase sdk issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions