I am trying to get user email from firebase, But typescript giving this error in react

Viewed 21

I am trying to get user email from firebase the when the user will login. That's why I can't define user before. I used optional chaining but react typescript giving error react typescript error

Code

1 Answers

You need just add 'Email' to type of UserCredential

Related