-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Labels
Description
[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:
- User signed up
- I request to verify the email
- 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
- Using
ReauthenticateAsync(credential)I receive "updated" FirebaseUser data where I see that email is verified. - However on new session just after dependencies check FirebaseUser.isEmailVerifdied is
falseagain. RunningFirebaseManager.AuthInstance.CurrentUser.ReloadAsync()updates that property to actualtrue
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