title: Difference between Firebase Auth REST API and Firebase methods like (createUserWithEmailAndPassword and etc.). Which approach do I use?
body: <p>Difference between:</p>
  <ol>
  <li>fetch(
  'https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyBZhsabDexE9BhcJbGxnZ4DiRlrCN9xe24',
  {
  method: 'POST',
  body: JSON.stringify({
  email: enteredEmail,
  password: enteredPassword,
  returnSecureToken: true,
  }),
  headers: {
  'Content-Type': 'application/json',
  },
  }</li>
  </ol>
  <p>and</p>
  <ol start="2">
  <li>Using auth.createUserWithEmailAndPassword</li>
  </ol>