createCredentials(strategyData, strategyType = 'local') {
    if (this.new) {
      throw new Error('The user have to be created first');
    }
    return this.yggdrasil.repositories.auth.createForUserId(this.id, strategyData, strategyType);
  }
/**
   * Create credentials for the user
   *
   * The user must have been created first
   *
   * @param strategyType
   * @param strategyData
   * @returns {Promise<user|*>}
   */
Create credentials for the user
The user must have been created first

@param strategyType
@param strategyData
@returns {Promise}
Create credentials for the user The user must have been created first @param strategyType @param strategyData @returns { Promise }
createCredentials(strategyData, strategyType = 'local') {
    if (this.new) {
      throw new Error('The user have to be created first');
    }
    return this.yggdrasil.repositories.auth.createForUserId(this.id, strategyData, strategyType);
  }
createCredentials ( strategyData , strategyType = 'local' ) { if ( this . new ) { throw new Error ( 'The user have to be created first' ) ; } return this . yggdrasil . repositories . auth . createForUserId ( this . id , strategyData , strategyType ) ; }
Create credentials for the user
 The user must have been created first
Create credentials for the user The user must have been created first