src/index.js
/**
	 * Parses an OAuth2 bearer authorization token (RFC6750) from the headers of a request
	 * @param {Object} req = HTTP request object
	 * @return {string | boolean} bearer authorization token
	 */
Parses an OAuth2 bearer authorization token (RFC6750) from the headers of a request
@param {Object} req = HTTP request object
@return {string | boolean} bearer authorization token
Parses an OAuth2 bearer authorization token ( RFC6750 ) from the headers of a request @param { Object } req = HTTP request object @return { string | boolean } bearer authorization token
static parseOAuth2Header(req) {
		const headerValue = this.headerLookup(req, 'authorization');
		return headerValue && (() => {
			const bearerRgx = /Bearer (.*)/;
			const match = headerValue.match(bearerRgx);
			return !!match && !!match[1] && match[1];
		})();
	}
static parseOAuth2Header ( req ) { const headerValue = this . headerLookup ( req , 'authorization' ) ; return headerValue && ( ( ) => { const bearerRgx = / Bearer (.*) / ; const match = headerValue . match ( bearerRgx ) ; return ! ! match && ! ! match [ 1 ] && match [ 1 ] ; } ) ( ) ; }
Parses an OAuth2 bearer authorization token (RFC6750) from the headers of a request
 @param {Object} req = HTTP request object
 @return {string | boolean} bearer authorization token
Parses an OAuth2 bearer authorization token ( RFC6750 ) from the headers of a request @param { Object } req = HTTP request object @return { string | boolean } bearer authorization token