Marketplace móvil para negocios locales mexicanos. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React Web) - apps/mobile (Expo/React Native) - apps/mcp-server (Claude MCP Server) - apps/whatsapp-service (WhatsApp Business API) - database/ (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
305 B
JavaScript
20 lines
305 B
JavaScript
'use strict';
|
|
|
|
var re = /(\S+)\s+(\S+)/;
|
|
|
|
|
|
|
|
function parseAuthHeader(hdrValue) {
|
|
if (typeof hdrValue !== 'string') {
|
|
return null;
|
|
}
|
|
var matches = hdrValue.match(re);
|
|
return matches && { scheme: matches[1], value: matches[2] };
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
parse: parseAuthHeader
|
|
};
|