% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auth.R
\name{authenticate_header}
\alias{authenticate_header}
\title{Authenticate a client from HTTP request headers}
\usage{
authenticate_header(auth_config, headers)
}
\arguments{
\item{auth_config}{A \code{autosync_auth_config} object.}

\item{headers}{Named list of HTTP request headers.}
}
\value{
List with \code{valid} (logical), \code{email} (character or NULL),
\code{error} (character or NULL).
}
\description{
Extracts and validates a Bearer token (JWT) from the Authorization header
of the WebSocket upgrade request.
}
\keyword{internal}
