Documentation
¶
Overview ¶
Package auth resolves fal credentials and produces the Authorization header. It is consumed by the transport layer through the Manager type. Credential material (keys, tokens, refresh tokens) is held in unexported fields and is never exposed: the only surface is NewManager and the AuthHeader method.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager resolves credentials once and serves the Authorization header, refreshing a file-based bearer token on expiry. It is safe for concurrent use.
func NewManager ¶
NewManager builds a Manager. key is an explicit fal key (overriding environment resolution) or ""; authBase is the Auth0 token host; tokenFilePath overrides the default login-token path (mainly for tests) or ""; userAgent is sent on the refresh request; httpClient performs the (un-retried) refresh call.