app/authenticators/application.js
/**
   * Authenticates the session with credentials from the specified user instance
   * by delegating to the `_super` method.  If authentication fails, a generic
   * error message is applied to the user model instance's base field.
   * It is recommended to use a disposable, unsaved user instance and to
   * destroy it after a successful authentication, or upon navigating away from
   * the route used for login.
   *
   * @see module:ember-simple-auth-loopback/authenticators/loopback~authenticate
   * @override
   * @function
   * @param {Object} user A user model instance
   * @returns {Promise} A promise that when it resolves results in the session
   *   becoming authenticated
   */
Authenticates the session with credentials from the specified user instance
by delegating to the `_super` method.  If authentication fails, a generic
error message is applied to the user model instance's base field.
It is recommended to use a disposable, unsaved user instance and to
destroy it after a successful authentication, or upon navigating away from
the route used for login.


Authenticates the session with credentials from the specified user instance by delegating to the ` _super ` method . If authentication fails a generic error message is applied to the user model instance ' s base field . It is recommended to use a disposable unsaved user instance and to destroy it after a successful authentication or upon navigating away from the route used for login .
authenticate(user, scope) {
    const { email, password } = user.getProperties('email', 'password');
    const promise = this._super(email, password, scope);
    promise.catch(() => user.pushErrors({
      base: ['Login failed.']
    }));
    return promise;
  }
authenticate ( user , scope ) { const { email , password } = user . getProperties ( 'email' , 'password' ) ; const promise = this . _super ( email , password , scope ) ; promise . catch ( ( ) => user . pushErrors ( { base : [ 'Login failed.' ] } ) ) ; return promise ; }
Authenticates the session with credentials from the specified user instance
 by delegating to the `_super` method.
Authenticates the session with credentials from the specified user instance by delegating to the ` _super ` method .