Files
mediamtx/internal/auth/error.go
T
Alessandro RosandGitHub f87d9e659e hls: track sessions (#962) (#5683)
sessions are now tracked through cookies or query parameters.

This provides the ability to inspect sessions through logs, metrics and
API, allows more precise tracking of outbound bytes, decreases load on
external HTTP authentication URLs since they are now called once per
session and not once per request.
2026-04-25 21:10:34 +02:00

13 lines
247 B
Go

package auth
// Error is an authentication error.
type Error struct {
Wrapped error
AskCredentials bool
}
// Error implements the error interface.
func (e *Error) Error() string {
return "authentication failed: " + e.Wrapped.Error()
}