'use strict';

function getBearerTokenFromAuthorizationHeader(authorizationHeader) {
  if (typeof authorizationHeader !== "string") {
    return void 0;
  }
  const matches = authorizationHeader.match(/^Bearer[ ]+(\S+)$/i);
  return matches?.[1];
}

exports.getBearerTokenFromAuthorizationHeader = getBearerTokenFromAuthorizationHeader;
//# sourceMappingURL=getBearerTokenFromAuthorizationHeader.cjs.js.map
