Documentation
¶
Overview ¶
Package auth carries the verified caller identity through the request context. The middleware in internal/auth.go is the only writer; handlers only read.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoUser = errors.New("no authenticated user")
Functions ¶
func CompanyID ¶ added in v0.16.0
CompanyID returns the company an integration token belongs to, empty for user requests.
func EmailDomain ¶
EmailDomain returns the lower-cased domain of the caller's verified primary email.
func WithCompany ¶ added in v0.16.0
WithCompany marks the request as made by an integration token for the given public company id.