Skip to content

Parse.User.login don't work as expected #490

@omar-bz

Description

@omar-bz

Hi I'm using "parse": "^1.9.2".
the problem is present when trying to login with invalid user, it generate an error.
when using:
Parse.User.logIn(email,pass,{success:u=>do_some_stuff(u),error:e=>show_the_error_message(e)})
an error is loged to the console and the error function is fired:
untitledscs

but when using the promises:
Parse.User.logIn(email,pass).then(u=>do_some_stuff(u)).catch(e=>show_the_error_message(e))
it only log the error on the console and do not resolve or reject the promise.
How this is happening and to fix it.
edit:

Parse.User.logIn instead of Parse.logIn

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions