Updates the user’s email address in Firebase Auth, particularly for Instagram users with temporary emails
cURL
curl --request POST \ --url http://localhost:3000/api/auth/update-user \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]" } '
{ "status": "<string>", "message": "<string>", "emailUpdated": true, "customToken": "<string>" }
The new email address
User email updated successfully
New authentication token if email was updated