'How do I change the control of the account in React and NodeJS from email to _userid

I am trying to create a react, NodeJS application for a movie review webpage where the user log in using email. His/her profile info would then link to this email address. However, I would like to change the extraction of the profile information. Instead of linking to this email address, which the user could change, to a particular userid instead (which is unique) and would not be modified.



Solution 1:[1]

Retreive user by its Email for example :

var mail= "[email protected]"
service.get('/users/' + mail).then(response => {
  console.log(response.data);
});

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Charfeddine Mohamed Ali