Login with just an email address?

Rachel:

I think you should review your logic on this.

I would start by checking the length of the queryResult. If the length is 0 then the statement:

let item = items[0];

will fail and generate an exception which should be being caught by your catch() statement.

You don’t need to be trying to grab the email value if there isn’t one :wink: