api/http/definitions/Credentials.js
/**
		 * Throws an {@link Error} if the instance is invalid.
		 *
		 * @public
		 */
Throws an  Error if the instance is invalid.
@public
Throws an Error if the instance is invalid . @public
validate() {
			if (!is.fn(this.usernameExtractor)) {
				throw new Error('Credentials username extractor must be a function.');
			}
			if (!is.fn(this.passwordExtractor)) {
				throw new Error('Credentials password extractor must be a function.');
			}
		}
validate ( ) { if ( ! is . fn ( this . usernameExtractor ) ) { throw new Error ( 'Credentials username extractor must be a function.' ) ; } if ( ! is . fn ( this . passwordExtractor ) ) { throw new Error ( 'Credentials password extractor must be a function.' ) ; } }
Throws an {@link Error} if the instance is invalid.
Throws an { @link Error } if the instance is invalid .