79144695

Date: 2024-10-31 12:21:55
Score: 3
Natty:
Report link

You are trying to call .then() on a function.  .then() can only be called on a promise: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then

Make sure then your login function returns a promise. (It now returns nothing if the try succeeds.)

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rick