jeffminsungkim / Ashy

0 stars 0 forks source link

Re-authenticate users #44

Closed jeffminsungkim closed 6 years ago

jeffminsungkim commented 6 years ago

Objective

Create a page for a user re-authentication. For security-sensitive tasks such as deleting accounts, setting a primary email address, and changing your password, you must have recently signed in. When doing this, if the user logged in too long ago, the operation will fail with an error. In this case, the new login credentials for reauthenticateWithCredential the user must be retrieved and passed on to reauthenticate the user.