According to the docs certain actions (such as Delete a user) require the user to have recently signed in. How does one know before the action if the user has recently signed in? Is there anything in the object returned by firebase.auth().currentUser
that indicates whether a user recently signed in?
Edit: To explain futher, it is possible for a user to be signed in and for firebase.auth().currentUser
to return valid user data but the user may have signed in before a certain time period (I don't what that is exactly) and this flags the user as "not signed in recently" and thus cannot perform certain actions (see above) without re-authenticating using user.reauthenticate(credential)